react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.53k stars 289 forks source link

fix: resolve android crash issue if props are undefined #571

Closed gamingumar closed 5 months ago

gamingumar commented 5 months ago

In some cases, children are not available yet or props are undefined in Android which causes the app to crash

Naturalclar commented 5 months ago

:tada: This PR is included in version 2.7.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

williamgurzoni commented 3 months ago

Hey @gamingumar this is causing an issue for react-native-picker-select as mentioned here. Is this really necessary? Should we solve it in a way to keep the behavior for both iOS and Android?

Quick introduction of why this is causing problems: The mentioned package adds a null item when the user specifies a placeholder for the dropdown. Before, the user was able to select the placeholder to "reset" the value. Now it works only for iOS.