picker icon indicating copy to clipboard operation
picker copied to clipboard

[android] Cannot select item with numeric value zero

Open vincicat opened this issue 1 year ago • 1 comments

similar to https://github.com/react-native-picker/picker/issues/592

I encounter some bugs after upgrade to RN 0.76...after some investigation I found it only happens on Android and is related to the value prop of <Picker.Item>:

demo

iOS will convert everything into string so it is fine (even with empty string), while android will keep the origin type of value so the selection of any "js falsy" value (numeric zero, empty string, undefined value etc) will not fire the onValueChange event.

Please help.

vincicat avatar Dec 11 '24 14:12 vincicat

This issue has been fixed via #604 and is available in the latest version of the lib

pranshuchittora avatar Jan 21 '25 12:01 pranshuchittora