lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.73k stars 491 forks source link

When list has large set of items 100 or above, last items get added to the top and scrolling does not work properly #521

Open emmanuelfrancis opened 9 months ago

emmanuelfrancis commented 9 months ago

Describe the bug
When list has large set of items 100 or above, last items get added to the top and scrolling does not work properly

To Reproduce

  1. Create a picker with 200 items.
  2. Scroll to set some item and observer the behaviour of the scroll.

Expected behavior
Scroll and select should set the item on focus and should not scroll to last item.

Screenshots
Please see attached video. https://github.com/lawnstarter/react-native-picker-select/assets/956144/aef24f72-300b-4281-9db0-31997b0e8946

Additional details

Reproduction and/or code sample
https://snack.expo.dev/c9UsjS9RD