You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this package hasn't been touched in 3 years, but I am using it for a project. I was using @react-native-picker/picker v.2.4.0 successfully but was forced to update to v.2.7.5 in order to support other updates. I'm not positive that this update is the cause, but now when I try to select an item with Picker it only returns empty strings for the value and label fields. I've been hunting through the @react-native-picker/picker code and issues but I don't see anything that would cause this.
Anyone experience this or have any ideas?
The text was updated successfully, but these errors were encountered:
OK, I figured out what's causing this. react-native-picker has a change (react-native-picker/picker#538) where value only returns as a string, so my integer values weren't being found in the nullableItems list. All I had to do is change my own values to strings to match.
I'm not sure if this necessarily warrants a change to this package; I do see that the PickerItem type lists value as any so technically this might need to be changed to string...
I know this package hasn't been touched in 3 years, but I am using it for a project. I was using
@react-native-picker/picker
v.2.4.0 successfully but was forced to update to v.2.7.5 in order to support other updates. I'm not positive that this update is the cause, but now when I try to select an item withPicker
it only returns empty strings for thevalue
andlabel
fields. I've been hunting through the@react-native-picker/picker
code and issues but I don't see anything that would cause this.Anyone experience this or have any ideas?
The text was updated successfully, but these errors were encountered: