react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

How to support pagination in drop down picker?

Open krushalikevadiya opened this issue 2 years ago • 8 comments

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

krushalikevadiya avatar Feb 08 '23 04:02 krushalikevadiya

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

voulgarakis avatar Feb 08 '23 07:02 voulgarakis

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

krushalikevadiya avatar Feb 08 '23 13:02 krushalikevadiya

do you have an example?

voulgarakis avatar Feb 08 '23 13:02 voulgarakis

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

krushalikevadiya avatar Feb 09 '23 04:02 krushalikevadiya

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

voulgarakis avatar Feb 09 '23 07:02 voulgarakis

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

voulgarakis avatar Feb 09 '23 08:02 voulgarakis

did someone found any solution??

WKMadushanka avatar Jul 13 '23 10:07 WKMadushanka

@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

kcs-vishnumahindalekar avatar Mar 21 '24 11:03 kcs-vishnumahindalekar