-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Scrollview w/ pagingEnabled instantly changing page on Android when scrolling fast #17056
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
I had the same problem using scrollview with pagingEnabled. Ended up using ViewPagerAndroid for android to have a smoother scrolling effect. However, it gives much more work since the scroll event props for ViewPagerAndroid.onPageScroll are "offset" and "position", not the same as in ScrollView. |
Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version? I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer. |
Experiencing this in RN 55.4 |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.1
Node: 7.9.0
Yarn: 0.22.0
npm: 4.2.0
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.3934792
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz => 0.50.3
Target Platform: iOS (11.2) & Android (8.0)
Steps to Reproduce
<View />
elements with device width and flex: 1 (so it takes up the whole height)Expected Behavior
I expected it to be the same on Android as it is on iOS, a smooth scroll animation instead of instantly changing page.
Actual Behavior
Instantly switching page on Android (without any animation)
Video demonstration
Reproducible Demo
Expo snack
The text was updated successfully, but these errors were encountered: