react-native-macos/ReactAndroid
Joshua Gross 10314fe621 Smoother scrolling in ScrollView, HorizontalScrollView
Summary:
Android ScrollView/HorizontalScrollView `smoothScrollTo` contains some logic that, if called multiple times in a short amount of
time, will treat all calls as part of the same animation and will not lengthen the duration
of the animation. This means that, for example, if the user is scrolling rapidly, multiple
pages could be considered part of one animation, causing some page animations to be animated
very rapidly - looking like they're not animated at all.

We use a custom animation to perform `smoothScrollTo` to improve the UX.

This resolves a longstanding issue in non-Fabric RN, as well as Fabric, since this code is shared between the platforms.

Changelog: [Update] Android ScrollView/HorizontalScrollView scrolls using custom animations instead of default Android `smoothScrollTo` implementation, leading to smoother scrolls for paginated ScrollViews

Reviewed By: mdvacca

Differential Revision: D21416520

fbshipit-source-id: 6ebe63cb054a98336b6e81253d35623fe5522f89
2020-05-05 22:27:47 -07:00
..
libs Upgrade Android support library to version 28 in RN 2019-01-22 10:44:53 -08:00
src Smoother scrolling in ScrollView, HorizontalScrollView 2020-05-05 22:27:47 -07:00
.npmignore Don't publish /ReactAndroid/build to npm, update version on master 2015-10-12 11:11:40 -07:00
DevExperience.md Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
README.md Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
build.gradle PlatformColor implementations for iOS and Android (#27908) 2020-03-02 15:12:09 -08:00
gradle.properties Bump SoLoader version to 0.8.2 2020-02-12 10:10:39 -08:00
proguard-rules.pro Add ProGuard rule for hermes (#28571) 2020-04-09 13:48:55 -07:00
release.gradle Tidy up license headers [1/n] 2019-10-16 10:06:33 -07:00

README.md

Building React Native for Android

See the docs on the website.

Running tests

When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.