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

[fixes slow render] Use FlatList for optimal performance

Open mxmkhv opened this issue 1 year ago • 1 comments

Solves this issue: https://github.com/fateh999/react-native-paper-dropdown/issues/48

Ran on ios and android with list of 250 countries and runs noticeably faster.

Learn more about optimisation here: https://www.callstack.com/campaigns/download-the-ultimate-guide-to-react-native-optimization

mxmkhv avatar Jul 31 '23 14:07 mxmkhv

Hey @mxmkhv excelente solution! I found a minor issue, the useCallBack renderItem is missing the value dependency. This makes than when the selected value changes, the style does not change on the list. (it needs to re-render)

RiedelNicolas avatar Aug 01 '23 17:08 RiedelNicolas