mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
050a5a3797
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41381 Noticed that when scrolling VirtualizedList's CellRenderer was re-rendering due to `onCellFocusCapture` not having a stable identify. Change the interface to CellRenderer to pass in the `cellKey` in the callback to save on creating new callbacks. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D51112928 fbshipit-source-id: 3fcb974d9b5585403895746fbc45f2cf5a9fa6b1
@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.