Skip to content

Commit 13928a5

Browse files
committed
Merge branch 'master' of https://github.com/nandorojo/moti
2 parents a3a330d + 5b5194c commit 13928a5

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs/docs/installation.md

+2-2
Original file line numberDiff line numberDiff 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

docs/docs/web.md

+16
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ npm install -D @expo/webpack-config
2020

2121
Then 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
2541
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:

0 commit comments

Comments
 (0)