react-native
react-native copied to clipboard
Text input dynamic change the text color
TextInput in React Native 0.62 still cannot dynamic change the text color when value have emoji and multiline. This is issue just happen on ios, android works fine Here is my example: https://snack.expo.io/@jonlefcun/rn20131---textinput-dynamic-color Please help me with this. Thank you
:warning: | Missing Environment Information |
---|---|
:information_source: | Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. |
Same behavior encountered 😌
* react-native: 0.63.2
Same behavior encountered
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
+1, v. 0.63.4
I have the same problem.
@haThaiHoang Have you tried using key prop somehow ?
@haThaiHoang try changing text with setNativeProps, it works for me preudo-code: if(platformSpecificTextColor && props.inputRef){ // not to trigger render, need only for dynamic color changing props.inputRef?.current?.setNativeProps?.({'text': ''}) setTimeout(() => { props.inputRef?.current?.setNativeProps?.({'text': props.text}) }) }
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue was closed because the author hasn't provided the requested feedback after 7 days.