You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native/README.md
+25-14Lines changed: 25 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
# PowerSync SDK for React Native
6
6
7
-
*[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres, MongoDB or MySQL on the server-side.*
7
+
_[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres, MongoDB or MySQL on the server-side._
8
8
9
9
This package (`packages/react-native`) is the PowerSync SDK for React Native clients. It is an extension of `packages/common`.
10
10
@@ -71,13 +71,24 @@ module.exports = function (api) {
71
71
};
72
72
```
73
73
74
-
## Metro config (optional)
74
+
### Expo EAS config (optional)
75
+
76
+
If you are using this library in an Expo project and encounter issues with multiple versions of SQLite3, the conflict might be due to `expo-updates` also depending on SQLite. To resolve this, you can configure Expo to use the third-party SQLite pod.
77
+
78
+
Update your `ios/Podfile.properties.json` to include the following configuration:
79
+
80
+
```json
81
+
{
82
+
"expo.updates.useThirdPartySQLitePod": "true"
83
+
}
84
+
```
85
+
86
+
### Metro config (optional)
75
87
76
88
When using a bare React Native app without a framework like Expo, the `@powersync/react-native` package does not work well with inline requires.
77
89
78
90
If you see the following error message
79
91
80
-
81
92
```bash
82
93
Super expression must either be null or a function
83
94
```
@@ -86,17 +97,17 @@ then you will need to add this to your `metro.config.js`:
0 commit comments