Skip to content
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

[android] Cannot select item with numeric value zero #608

Open
vincicat opened this issue Dec 11, 2024 · 0 comments
Open

[android] Cannot select item with numeric value zero #608

vincicat opened this issue Dec 11, 2024 · 0 comments

Comments

@vincicat
Copy link

similar to #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant