react-native-parallax-swiper icon indicating copy to clipboard operation
react-native-parallax-swiper copied to clipboard

Explore using ViewPagerAndroid instead of ScrollView/FlatList

Open zachgibson opened this issue 7 years ago • 2 comments

Not sure if this is viable, but the scrolling animation is way better on Android using ViewPagerAndroid versus ScrollView. Current issues are:

  1. ViewPagerAndroid exposes scroll offset but gets reset to 0 on every page
  2. ViewPagerAndroid probably isn’t optimized for long lists like FlatList
    • Could possibly still add this as an option if wanted e.g. short list of like 3 pages

zachgibson avatar Dec 11 '17 02:12 zachgibson

I tried your component to display images from my gallery. So I rendered around 100 images but it started to lag. Maybe use Animated Flatlist instead of Animated.ScrollView?

YashGadle avatar Nov 07 '18 13:11 YashGadle

Yeah, this is definitely the plan moving forward. I won’t be able to get to it immediately but PRs are definitely welcome. 🙌

zachgibson avatar Nov 14 '18 17:11 zachgibson