We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The color prop in TextInput.Icon https://callstack.github.io/react-native-paper/docs/components/TextInput/TextInputIcon suppose to change icon color but at present it doesn't work. But undocumented iconColor does work and change the icon color
color
TextInput.Icon
iconColor
It should change the icon color
Navigate to TextInput example. I have update the code. Check the top 2 example.
https://snack.expo.dev/@cjmling/react-native-paper-example_v5
<TextInput style={styles.inputContainerStyle} label="color prop does not work" placeholder="Type something" value={text} onChangeText={(text) => inputActionHandler('text', text)} left={ <TextInput.Icon icon="magnify" color={'#22C55E'} onPress={() => { changeIconColor('flatLeftIcon'); }} /> } right={<TextInput.Affix text="/100" />} /> <TextInput style={styles.inputContainerStyle} label="iconColor work" placeholder="Type something" value={text} onChangeText={(text) => inputActionHandler('text', text)} left={ <TextInput.Icon icon="magnify" iconColor="#22C55E" onPress={() => { changeIconColor('flatLeftIcon'); }} /> } right={<TextInput.Affix text="/100" />} />
The text was updated successfully, but these errors were encountered:
The color prop in TextInput.Icon not working
Sorry, something went wrong.
lukewalczak
Successfully merging a pull request may close this issue.
Current behaviour
The
color
prop inTextInput.Icon
https://callstack.github.io/react-native-paper/docs/components/TextInput/TextInputIcon suppose to change icon color but at present it doesn't work. But undocumentediconColor
does work and change the icon colorExpected behaviour
It should change the icon color
How to reproduce?
Navigate to TextInput example. I have update the code. Check the top 2 example.
https://snack.expo.dev/@cjmling/react-native-paper-example_v5
Preview
What have you tried so far?
Your Environment
The text was updated successfully, but these errors were encountered: