From 492e4ce08e80e813ac21ddf42f71832dfd5477c8 Mon Sep 17 00:00:00 2001 From: Dylan Lamont <38599829+didley@users.noreply.github.com> Date: Tue, 3 Dec 2024 21:12:34 +1100 Subject: [PATCH] fix: setting nullish values on android (#604) --- js/PickerAndroid.android.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/PickerAndroid.android.js b/js/PickerAndroid.android.js index 166057727..7fade6a23 100644 --- a/js/PickerAndroid.android.js +++ b/js/PickerAndroid.android.js @@ -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 {