mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
12b64b7824
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45305 Allow SectionList render functions to return any React node, instead of just React.Element. This matches VirtualizedList/FlatList, and general Flow component conventions. Changelog: [General][Fixed] - Loosen SectionList `renderItem` required return type Reviewed By: joevilches Differential Revision: D59404511 fbshipit-source-id: 3055d8f01845ff5ef8ae75b87f60d8cd26dc07b4
@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.