-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Direct Manipulation doesn't work. Can't get TextInput value from ref #21153
Comments
@kelset Precisely, this part. The only difference is that it is example for clearText.
So in my case I do the same but differently, for capturing text typing
|
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists. The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running |
This comment has been minimized.
This comment has been minimized.
I hope you realise that:
I also suggest you start behaving accordingly to the CoC or we will enforce it. |
Here's a workaround. monkeypatch the TextInput class:
Then use 'getRef' to get the actual ref:
|
The original report is for an older version of React Native, and the TextInput component has been updated significantly since then. Closing - if someone believes this is still an issue in 0.58 or later, please do feel free to open a new issue. |
Environment
Description
ref
doesn't work. I can't get value fromTextInput
Reproducible Demo
No demo!
This real live code is enough for you to understand and reproduce
All these things do not work:
The text was updated successfully, but these errors were encountered: