react-native-chooser
react-native-chooser copied to clipboard
selected prop should set the selected value
The selected is not working as it should. Its really hard to create a update form with the current implementation.
One should manually loop through the list of values to get the selected option value and set it as a defaultText.
Hi, I would love to simplify this. Please share your thoughts on how you would like API to.
Thanks
Hey awesome plugin,
When you set a selected prop that should automatically show the correct option value.
for example a items array has objects that has a id and a value. I want to set the selected prop with id and that should set the correct option value.
This is how it is in every dropbox.
I hope you add a fix to this soon. I think this is expected behaviour of selected prop but it is not working.