You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to change the color of placeholder text in a TextInput, you need to pass in a color to the placeholderTextColor prop directly.
<TextInput
style={styles.exampleInput}
placeholder="This is example text"
placeholderTextColor="red"
/>
...
const styles = StyleSheet.create({
exampleInput: {
}
})
Instead, the TextInput placeholder text color should inherit it from the color in the style by default. For backwards compatibility, it could be that the placeholderTextColor prop still take precedence, but it should default to the color style, like so:
<TextInput
style={styles.exampleInput}
placeholder="This is example text"
/>
...
const styles = StyleSheet.create({
exampleInput: {
color: "red"
}
})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, to change the color of placeholder text in a
TextInput
, you need to pass in a color to theplaceholderTextColor
prop directly.Instead, the TextInput placeholder text color should inherit it from the
color
in the style by default. For backwards compatibility, it could be that theplaceholderTextColor
prop still take precedence, but it should default to the color style, like so:Beta Was this translation helpful? Give feedback.
All reactions