-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
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
Change textfield content #205
Comments
I just faced this issue, I think this can be resolved by using a |
value is not getting set when i pass prop, value={this.state.customerList} Edit: Able to set through
|
Hi, I am seeing the same problem. Updating a bound state variable does not rerender the text contents. I don't think it should be necessary to create a ref for each and every textfield used. |
@vandero I agree...what might work for you is to wrap this component so that you can call setValue when the component updates:
|
It happens because getDerivedStateFromProps prevents it from updating. I opened a pull request to address this issue. |
For functional component: |
I want to update the textfield content from outside, so I give in a new value into field value.
But the component don't accept the new content.
I forked the code and removed the state of the field value and ask if this is a feature you want to have on your main branch?
https://github.com/Flow-Flinc/react-native-material-textfield
The text was updated successfully, but these errors were encountered: