hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
970 stars 294 forks source link

How to support pagination in drop down picker? #639

Open krushalikevadiya opened 1 year ago

krushalikevadiya commented 1 year ago

I need to show large amount of data in picker and I want to make it happen using pagination.Is it possible?

voulgarakis commented 1 year ago

In my case the app also freezes for a large set of data (~20k), pagination may be the solution.

krushalikevadiya commented 1 year ago

Need to pass into scroll view props or flatlist props. I have implemented it by using props of flatlist.

voulgarakis commented 1 year ago

do you have an example?

krushalikevadiya commented 1 year ago

https://prnt.sc/8F7tzHjqojK0 Please implement like this way with scroll view.

voulgarakis commented 1 year ago

I do it that way with scrollview but still the app freezes for 20k rows of data. image

voulgarakis commented 1 year ago

FYI when using "MODAL" as listmode the performance is fine

WKMadushanka commented 11 months ago

did someone found any solution??

kcs-vishnumahindalekar commented 3 months ago

@krushalikevadiya can you please give me more info on which dropdown library you use and some more info about how to fetch data on the drop-down scroll with pagination API