mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3f3a85b3c5
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45878 Changelog: [General][Added] - Add optional `PackagerAsset.resolver` prop so AssetSourceResolver can use it instead of `Platform.OS` to identify where asset is stored on device. Reviewed By: rshest Differential Revision: D60447815 fbshipit-source-id: 44fb8510746905ca0cd266144e213c40a3fa86a9
@react-native/assets-registry
Installation
yarn add --dev @react-native/assets-registry
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/assets.