mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c9f2055097
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51246 Changelog: [General][Fixed] Fix generated types in react-native/virtualized-lists being used without opt-in D71969602 introduces `exports` field to `package.json` files in `react-native` and `virtualized-lists`. In that diff, the `types` in `virtualized-lists` by default pointed to the new generated types without requiring the opt-in. This fixes that by requiring the opt-in before using the generated types. Reviewed By: huntie Differential Revision: D74573321 fbshipit-source-id: fe05b0204a7200c1c91aac2614aa786bbbced2a5
@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.