-
Notifications
You must be signed in to change notification settings - Fork 502
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
How to set value initially? #533
Comments
I've added the value and key prop in RNPickerSelect. The value was shown by default. But when i try to edit the Picker value, it was resetting for the first time. How can i fix this issue? Code:-
Screen recording:- Screen.Recording.2023-12-28.at.3.00.13.PM.mov |
I had the same problem with a form, everytime I changed a field, the select was reset to the initial value. The solution is to update the variable you used in 'value' , in the onValueChange
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm using this module it is working fine. I need to show value by default which is getting from API.
To Reproduce
I am using value prop but it's not working.
Expected behavior
How can i show value by default. What is the prop?
Additional details
Reproduction and/or code sample
The text was updated successfully, but these errors were encountered: