File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
ViewStyle ,
8
8
TextStyle ,
9
9
ImageStyle ,
10
- ViewProps ,
11
10
TextInputProps ,
12
11
} from "react-native" ;
13
12
import RNBounceable , {
@@ -50,13 +49,18 @@ const RNTextInput: React.FC<IRNTextInputProps> = ({
50
49
onPress,
51
50
...props
52
51
} ) => {
52
+ const [ placeholderText , setPlaceholderText ] = React . useState < string | undefined > ( placeholder ) ;
53
+ React . useEffect ( ( ) => {
54
+ setPlaceholderText ( placeholder )
55
+ } , [ ] ) ;
56
+
53
57
const renderContent = ( ) => (
54
58
< View style = { styles . contentContainer } >
55
59
< TextInput
56
60
placeholderTextColor = "#ead4ff"
57
61
{ ...props }
58
62
ref = { inputRef }
59
- placeholder = { placeholder }
63
+ placeholder = { placeholderText }
60
64
style = { [ styles . textInputStyle , textInputStyle ] }
61
65
/>
62
66
{ ! disableButton && (
You can’t perform that action at this time.
0 commit comments