SQLite Plugin

The SQLite plugin provides a query-first database inspector for React Native DevTools. It works with registered SQLite adapters, ships with an expo-sqlite adapter out of the box, and derives tables, schema details, and browse views entirely through SQL and PRAGMA queries.
Installation
Make sure to go through the Getting Started guide before installing the plugin.
Install the plugin:
Install the adapter peer dependency if you use Expo SQLite:
Base Setup
App.tsx
What the panel provides
- Browse registered databases, tables, and views.
- Inspect columns, defaults, primary keys, indexes, and foreign keys.
- Run SQL scripts and inspect normalized metadata for each executed statement.
- Preview result cells with structured JSON and blob-like payload support.
Adapter: Expo SQLite
App.tsx
Notes
- The display name is shown in the UI, while the plugin generates an internal opaque ID for bridge traffic.
- The SQL editor executes statements in order, stops on the first error, and preserves explicit
BEGIN,COMMIT, andROLLBACKstatements. - Custom adapters receive the full ordered statement array for scripts. To preserve per-statement failure details, throw an error enriched with
completedResultsandfailedStatementIndex. - Schema and browse features are implemented with SQL and
PRAGMA, so custom adapters only need to normalize statement execution.
Custom adapters
You can support any sqlite-like runtime by creating a generic adapter with an executeStatements() function per database:
App.tsx
Next: See Storage, File System, and Plugin Development.
