react-native-picker / picker

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

Expose event for when a new item is in focus? #390

Open foxtree opened 2 years ago

foxtree commented 2 years ago

If it's not the case already, is there any way expose an event for when a new item comes into focus, on iOS?

(Or, can onValueChange be triggered?)

The current behavior causes the Picker selectedValue to be inconsistent with what is visually highlighted.

The issue occurs with the EndpointPicker, in the following open-source git repo: https://github.com/sync-for-science/discovery-mobile-ui/

foxtree commented 2 years ago

The current behavior actually seems like a bug:

I would expect that whatever is focused/highlighted in the Picker should always be aligned with the Picker selectedValue.