Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,18 @@ module.exports = function (api) {
};
```

# Metro config
## Metro config (optional)

When using a bare react native app without a framework like Expo, the `@powersync/react-native` package does not work well with inline requires.

If you see the following error message

The `@powersync/react-native` has issues with inline requires. If you are not using Expo then you may see this error

```bash
Super expression must either be null or a function
```

in which case you need to add this to your `metro.config.js`:
then you will need to add this to your `metro.config.js`:

```js
const config = {
Expand Down
Loading