mkko / react-native-hpicker

Horizontally scrolling picker component for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Low performance

napsta32 opened this issue · comments

I tried some basic number rendering and it was very slow, not responsive and the picked item isn't located at the middle. Is it possible to use some native rendering method?

Hi @napsta32! Sorry for not getting back to you earlier.

I believe you're testing this on Android, right? There seems to be some mismatch between Android and iOS and unfortunately I didn't find any clean solution for this when looking into the snapping issue. The performance issue I didn't notice at least on the one device that I used. Could you elaborate how does the non-responsiveness look? How wide was the range you used? Currently the picker doesn't have any kind of virtualization, which means all of the items are rendered on each pass.

I would love to do this natively, but unfortunately don't have the time to support both platforms. However, I'm happy to take any contributions!