Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Oct 12, 2023
2 parents a3a330d + 5b5194c commit 13928a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ Moti `0.8.x` and higher requires at least Reanimated v2 stable (`2.0.0` or highe

### If you're using Expo

Please follow the [Expo instructions](https://docs.expo.io/versions/latest/sdk/reanimated) for installing `react-native-reanimated` v2.
Please follow the [Expo instructions](https://docs.expo.io/versions/latest/sdk/reanimated) for installing `react-native-reanimated`.

### If you aren't using Expo

Please follow Reanimated's [installation instructions](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation) for v2.
Please follow Reanimated's [installation instructions](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/#installation).

## Import Reanimated

Expand Down
16 changes: 16 additions & 0 deletions docs/docs/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ npm install -D @expo/webpack-config

Then run `yarn web` and you're done!

## Expo Router / Metro Web

You'll need to add `mjs` to your `sourceExts` in `metro.config.js`. For example:

```js
const { getDefaultConfig } = require('expo/metro-config');

const config = getDefaultConfig(__dirname);

config.resolver.assetExts.push(
'mjs’
);
module.exports = config;
```
### Troubleshooting
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:
Expand Down

0 comments on commit 13928a5

Please sign in to comment.