@amazon-devices/expo-asset provides an Expo universal module to download assets and pass them into other APIs.
Installation
- Add the JavaScript library dependency in the
package.jsonfile. Select the tab for your React Native version.
- React Native 0.72
- React Native 0.83
- Reinstall dependencies using
npm installcommand.
Examples
The example below demonstrates how to download and store assets locally with theuseAssets hook.
loadAsync method.

