react-native-material-textfield
react-native-material-textfield copied to clipboard
labelTextStyle doesn't function
Example:
<Textfield labelTextStyle={{ color: 'red' }} />
This prop doesn't currently affect the label.
Try tintColor={'red'}
Try
tintColor={'red'}
tinitColor is applied when focus is on the textfield. But I want to change color of placeholder
Try
tintColor={'red'}
tinitColor is applied when focus is on the textfield. But I want to change color of placeholder
you can use placeholderTextColor to change placeholder color
Update src/components/label/index.js
order of style propogation to Animated.Text to be
[styles.text, textStyle, style]
You can use patch-package module to keep this change in your project git
I also need to set the placeholder color and when I search the whole repo, placeholderTextColor only shows up in this issue.
I was able to change the color of the label using a combination of baseColor and tintColor:
baseColor={Theme.lightgray}
tintColor={isFocused ? Theme.blue : Theme.lightgray}
Tintcolor was working to change the color only when the input was focused. Once I found the baseColor prop I was able to change the color of the label when it wasn't focused.