Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore using ViewPagerAndroid instead of ScrollView/FlatList #12

Open
zachgibson opened this issue Dec 11, 2017 · 2 comments
Open

Explore using ViewPagerAndroid instead of ScrollView/FlatList #12

zachgibson opened this issue Dec 11, 2017 · 2 comments

Comments

@zachgibson
Copy link
Owner

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
@YashGadle
Copy link

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?

@zachgibson
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants