react-native-picker / picker

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

Selected value jumps back to first value when "Done" is tapped - Picker library v2.6.1, iOS only #540

Open ddytert opened 5 months ago

ddytert commented 5 months ago

We recently updated the picker library in our ReactNative app to version 2.6.1. We have now encountered a bug when selecting a value with the picker wheel on iOS devices. When we tap the 'done' button, the wheel spins back to the first value and it is selected. The spinning back happens before 'onValueChange' is called, so we can't intercept and read the value before it is reset.

zabojad commented 5 months ago

Having the same issue on RN 0.78.9...

mthores commented 5 months ago

Same for us.

sbeigel commented 5 months ago

Same and it's caused by #538 (at least for me).

You could change your code to only use string values (and add the necessary conversions) but I strongly hope that #538 gets fixed soon :)