React Native Support
Today we’re announcing the alpha release of our React Native SDK [1].
This release makes it trivial for React Native developers to add instant offline-first capability to their apps without a heavy engineering lift or requiring invasive changes to their existing Postgres backends.
Our React Native SDK is built using our common Rust core for client SDKs that we previously presented to our community [2], and lays the foundation for future SDKs including Flutter web.
The SDK is built using an abstracted common TypeScript/JavaScript implementation of a PowerSyncDatabase client. This client is then extended with React Native specific implementations of locks, network request handlers and a SQLite database adapter. We use a forked react-native-quick-sqlite to link the client to our Rust SQLite extension for performant JSI [3] based DB operations [4].
Demo app
We've also released a demo app created with Expo [5] which demonstrates real-time streaming of Postgres data and offline CRUD operation queuing & syncing. The demo app also showcases our integration with Supabase.
We’re available on our Discord if you need any help or have any questions.