mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This diff refactors the scroll animation from `ReactScrollView` and `ReactHorizontalScrollView` into the `ReactScrollViewHelper` to reduce repeated code. The `Animator` is now shared between all the scroll views in the app, which I believe is the right behavior. It also helps to make the animator changes in future diffs apply to both horizontal and vertical scroll view. - Move `reactSmoothScrollTo` to `smoothScrollTo` in the helper class - This means one Animator for all ScrollViews - Move `updateStateOnScroll` to the helper class - Add interface for accessing instance scroll state properties in ScrollView - This means each ScrollView keeps their own scrolling state - Use `Point` class for pairs of x and y values Changelog: [Internal] Reviewed By: javache Differential Revision: D32372180 fbshipit-source-id: 529180eea788863689c3b440191ed50c5a6f04e5
Building React Native for Android
See the docs on the wiki.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.