Skip to content
Merged
Changes from 2 commits
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
26 changes: 26 additions & 0 deletions packages/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,32 @@ module.exports = function (api) {
};
```

# Metro config

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`:

```js
const config = {
transformer: {
getTransformOptions: async () => ({
transform: {
inlineRequires: {
blockList: {
[require.resolve("@powersync/react-native")]: true,
},
},
},
})
}
};
```

# Native Projects

This package uses native libraries. Create native Android and iOS projects (if not created already) by running:
Expand Down
Loading