question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextInput: no placeholder and white font in testflight

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

45reactions
levibuzoliccommented, Dec 11, 2019

Dark mode affects the default colour of the placeholder. You can override this behaviour by setting placeholderTextColor on the TextInput.

<TextInput placeholderTextColor="red" />
36reactions
Sangleppcommented, Dec 10, 2019

Just a quick question: do you have dark mode enabled in your iPhone?

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native: TextInput placeholder not showing up on IOS
I have a react-native component which has a TextInput. On android, the placeholder shows up with no problem, however, on IOS, it does...
Read more >
UITextField | Apple Developer Documentation
An object that displays an editable text area in your interface.
Read more >
Notifications - Expo Documentation
For your notification icon, make sure you follow Google's design guidelines (the icon must be all white with a transparent background) or else...
Read more >
Text input mask for React Native on iOS and Android
For iOS you have to drag and drop InputMask framework to Embedded Binaries in General tab of Target and check 'Yes' in 'Always...
Read more >
TextInput - React Native
useState("Useless Text"); const [number, onChangeNumber] = React. ... Multiline Placeholder'); // If you type something in the text box that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found