react-native-parallax-swiper
react-native-parallax-swiper copied to clipboard
Explore using ViewPagerAndroid instead of ScrollView/FlatList
Not sure if this is viable, but the scrolling animation is way better on Android using ViewPagerAndroid versus ScrollView. Current issues are:
- ViewPagerAndroid exposes scroll offset but gets reset to 0 on every page
- 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
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?
Yeah, this is definitely the plan moving forward. I won’t be able to get to it immediately but PRs are definitely welcome. 🙌