mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
62c15bacaa
Summary: In setups with `pnpm` `react-native/virtualized-lists` gets bundled incorrectly because of the following error: `Module not found: Error: Can't resolve 'react'` As 'react' is used inside of the package, it should declared explicitly, instead of being a phantom dependency. ## Changelog: [GENERAL] [FIXED] - Declare missing peer dependency `react` Pull Request resolved: https://github.com/facebook/react-native/pull/42947 Test Plan: not needed Reviewed By: NickGerleman Differential Revision: D53617462 Pulled By: cortinico fbshipit-source-id: 19a8fed94263646b0af93339d5c014e629dfa6b1
@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.