Skip to content

Commit

Permalink
fix: setting nullish values on android (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
didley authored Dec 3, 2024
1 parent 5e08652 commit 492e4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/PickerAndroid.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function PickerAndroid(props: PickerAndroidProps, ref: PickerRef): React.Node {
(item) => item != null,
);
const value = children[position]?.props?.value;
if (value) {
if (value !== undefined) {
onValueChange(value, position);
}
} else {
Expand Down

0 comments on commit 492e4ce

Please sign in to comment.