How to change the text color of text input in react native?

Syuzanna picture Syuzanna · Sep 9, 2017 · Viewed 53.3k times · Source

The placeholder of the input is green but I want also make the green text input (when I am typing the text text color shows black which is not visible enough in my UI). How can I make it Green as well?

Answer

Mohamed Khalil picture Mohamed Khalil · Sep 9, 2017

add color: 'green'; in your TextInput style will change the color

<TextInput style={styles.textInput} />

const styles = StyleSheet.create({
 textInput: {
  color: 'green',
 },
});`

in native-base you will need to take care also of theming see docs