Skip to content

Commit

Permalink
Merge branch 'main' into tanstack/react
Browse files Browse the repository at this point in the history
# Conflicts:
#	pnpm-lock.yaml
  • Loading branch information
Chriztiaan committed Oct 3, 2024
2 parents 5966ef0 + afcc9b3 commit 25a8be4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
29 changes: 29 additions & 0 deletions packages/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,35 @@ module.exports = function (api) {
};
```

## 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


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

then you will 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
9 changes: 0 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 25a8be4

Please sign in to comment.