mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
33d6da01ea
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38736 `scrollToIndex` relies on cached layout information, so we should cache the results from `onContentSizeChange` before attempting the scroll. Otherwise we will fail to scroll in RTL. Changelog: [General][Fixed] Cache ScrollView content length before calling `scrollToIndex` Reviewed By: lenaic Differential Revision: D47978635 fbshipit-source-id: 27f2a4702650e8a73e8812128821ca03f36216dd
@react-native/virtualized-lists
Installation
yarn add @react-native/virtualized-lists
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest packages/virtualized-lists.