mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e8a0f0d067
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41113 changelog: [internal] We must prevent VirtualizedList._onContentSizeChange from being triggered by a conflicting bubbling onContentSizeChange event. For TextInput, we change the event onContentSizeChange from bubbling to direct (https://github.com/facebook/react-native/commit/744fb4a0d23d15a40cd591e31f6c0f6cb3a7f06b). To make this safer, we need to filter out any `onContentSizeChange` event since we can't control 3rd party components from dispatching onContentSizeChange as bubbling event. Reviewed By: NickGerleman Differential Revision: D50451232 fbshipit-source-id: b7a446e4efc9c45024d37f35cb53f2fcbb28799f
@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.