Introducing React Native Bindings for Turso
Blog post from Turso
The introduction of official React Native bindings for Turso, named @tursodatabase/sync-react-native, provides a comprehensive package that integrates both an embedded database and optional cloud sync capabilities, enhancing the functionality of SQLite with additional features like concurrent writes, checksums, and materialized views. Designed to support offline-first applications, the package allows bidirectional synchronization between local databases and Turso Cloud, facilitating seamless data updates when devices reconnect. The architecture employs a thin JSI bridge with major logic in TypeScript, promoting easier debugging, better testability, and faster iteration. Developers can create local databases or sync them with Turso Cloud using simple commands, and the package supports React Native 0.76+ with the New Architecture enabled. Future enhancements include partial sync, an Expo plugin, and real-time subscriptions, with further resources and support available on GitHub and through community channels like Discord.