react-native-chooser icon indicating copy to clipboard operation
react-native-chooser copied to clipboard

selected prop should set the selected value

Open uthpalax opened this issue 7 years ago • 2 comments

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.

uthpalax avatar Jan 02 '18 13:01 uthpalax

Hi, I would love to simplify this. Please share your thoughts on how you would like API to.

Thanks

gs-akhan avatar Jan 02 '18 20:01 gs-akhan

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.

uthpalax avatar Jan 03 '18 04:01 uthpalax