File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ Moti `0.8.x` and higher requires at least Reanimated v2 stable (`2.0.0` or highe
4646
4747### If you're using Expo
4848
49- Please follow the [ Expo instructions] ( https://docs.expo.io/versions/latest/sdk/reanimated ) for installing ` react-native-reanimated ` v2 .
49+ Please follow the [ Expo instructions] ( https://docs.expo.io/versions/latest/sdk/reanimated ) for installing ` react-native-reanimated ` .
5050
5151### If you aren't using Expo
5252
53- Please follow Reanimated's [ installation instructions] ( https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation ) for v2 .
53+ Please follow Reanimated's [ installation instructions] ( https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/# installation ) .
5454
5555## Import Reanimated
5656
Original file line number Diff line number Diff line change @@ -20,6 +20,22 @@ npm install -D @expo/webpack-config
2020
2121Then run ` yarn web ` and you're done!
2222
23+ ## Expo Router / Metro Web
24+
25+ You'll need to add ` mjs ` to your ` sourceExts ` in ` metro.config.js ` . For example:
26+
27+ ``` js
28+ const { getDefaultConfig } = require (' expo/metro-config' );
29+
30+ const config = getDefaultConfig (__dirname );
31+
32+ config .resolver .assetExts .push (
33+ ' mjs’
34+ );
35+
36+ module.exports = config;
37+ ```
38+
2339### Troubleshooting
2440
2541If you get the following Reanimated error in your console: `ReferenceError: _frameTimestamp is not defined`, you can add add this to `App.js` at the top:
You can’t perform that action at this time.
0 commit comments