SQLighter is a Rozenite devtools plugin that adds a live SQLite explorer panel to React Native apps. Version 0.0.12 is the latest, with weekly releases. It allows browsing databases, inspecting tables, running SQL queries, and viewing row details. Key differentiator: library-agnostic - works with expo-sqlite, op-sqlite, react-native-quick-sqlite, or custom native modules. Ships TypeScript types, requires React Native and Rozenite devtools setup. Unlike alternatives, it integrates directly into the Rozenite debugging workflow, providing real-time database inspection without leaving the development environment.
npm install rozenite-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup with expo-sqlite using openDatabaseSync. Registers two databases with the SQLExecutor callback.
Ensure the component using useRozeniteSQLite is a descendant of Rozenite's DevtoolsProvider (or similar). Refer to Rozenite documentation for setup.
Ensure your SQLite library's query method returns an array where each element is a plain object with string keys. Use type assertion if needed.
Use the same database name strings consistently. If using expo-sqlite's openDatabaseSync, the name parameter includes the .db extension.
Ensure Rozenite devtools is properly initialized and connected. Check Rozenite documentation for troubleshooting.
Ensure the database is opened and stored in a map accessible to sqlExecutor. Verify the database name string exactly matches (including .db extension).
Check that the database instance is correctly obtained in sqlExecutor. If using expo-sqlite, ensure openDatabaseSync returns a valid database object.