-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextInput: no placeholder and white font in testflight #27437
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.
|
We are also seeing this on a single iPhone 7 plus. IOS 13.2.2. It's fine in the simulator and on other devices (iPhone XS. IOS 13.1.3) Our react-native info is:
I'm currently updating one of our other test devices to 13.2.3 to try and reproduce the issue there. |
@markwillis82 let me know what you find when updating to 13.2.3 |
Just a quick question: do you have dark mode enabled in your iPhone? |
Yes, I had not thought of that but that seems to be the causal factor @Sanglepp |
Dark mode affects the default colour of the placeholder. You can override this behaviour by setting <TextInput placeholderTextColor="red" /> |
Yes that works |
This is 100% a bug. And no, setting Unfortunately, I can't show this in expo snack because Code with <View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<TextInput placeholder="This is a placeholder" style={{height: 50, borderBottomColor: 'black', borderWidth: 1, width: '50%', marginLeft: 40, marginRight: 40}}/>
<TextInput
placeholder="This is multiline" style={{height: 50, borderBottomColor: 'black', borderWidth: 1, width: '50%', marginLeft: 40, marginRight: 40}}
multiline={true}
numberOfLines={1}
/>
</View> |
Think I found the bug and made a PR: |
In case anyone simply wants to revert to old behavior, you can disable your app's dark mode support in your
|
<TextInput placeholder="Password" style={styles.inputStyle} onChangeText={(password) => this.setState({password})} value={this.state.password.placeholder}> |
Issue with text input not showing placeholder and the value font being while when the project is compiled and released testflight
IOS Version: 13
React Native Version: 0.60.5
React Native CLI version: 2.0.1
Xcode version: 11.2.1
[skip envinfo]
Here is the code behind the textinput
<TextInput style={styles.input} keyboardType="numeric" onChangeText={(value) => this.afunction(value)} value={this.state.value} placeholder="placeholder"/>
This is what it looks like when in a development simulator:
https://github.com/wkibbler/rn-issue-screenshots/blob/master/in-simualator.png
This is what it looks like when downloaded into an iPhoneX using testflight and ios 13:
https://github.com/wkibbler/rn-issue-screenshots/blob/master/on-testflight.jpeg
(ignore the red circle thats just a tester illustrating the issue)
The text was updated successfully, but these errors were encountered: