hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
861 stars 154 forks source link

Fix: scrollToIndex out of range: item length 0 but minimum is 1 #253

Open RajRohitYadav opened 3 months ago

RajRohitYadav commented 3 months ago

Error: scrollToIndex out of range: item length 0 but minimum is 1

How to reproduce?

  1. Have data of enough length such that on search, the list should scroll
  2. Select an item that is not rendered initially when the search is clicked, we have to persist this data for the next re-render
  3. On next re-render, open search, and enter string which does not exist in list
JDMathew commented 1 month ago

@hoaphantn7604 would it be possible to get some of these PR's merged or open up the package to external maintainers?

gabrielroodriz commented 1 month ago

Is there anything else we need to finalize this?