File tree 2 files changed +18
-2
lines changed
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
46
46
47
47
### If you're using Expo
48
48
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 ` .
50
50
51
51
### If you aren't using Expo
52
52
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 ) .
54
54
55
55
## Import Reanimated
56
56
Original file line number Diff line number Diff line change @@ -20,6 +20,22 @@ npm install -D @expo/webpack-config
20
20
21
21
Then run ` yarn web ` and you're done!
22
22
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
+
23
39
### Troubleshooting
24
40
25
41
If 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