Registry / devops / expo-sqlite-devtools

expo-sqlite-devtools

JSON →
library0.0.2jsnpmunverified

An Expo DevTools Plugin for inspecting SQLite databases in Expo apps. Current stable version is 0.0.2, released as an early experimental package. It integrates with the Expo DevTools interface to provide live queries, schema viewer, and data browsing. Key differentiator: it requires no separate server or database viewer, works directly inside the Expo development tools. Alternative to react-native-flipper plugins but Expo-native. Currently limited to Expo SDK 50+ and peer dependency on expo.

npm install expo-sqlite-devtools
INSTALL
IMPORT
SIG · EXPO-SQLITE-DEVTOO
E
expo-sqlite-devtools
devopsjavascriptv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

useSQLiteDevTools
import { useSQLiteDevTools } from 'expo-sqlite-devtools'
const { useSQLiteDevTools } = require('expo-sqlite-devtools')
The package is ESM-only and requires named import. The hook must be called inside a React component.

Shows minimal integration: import hook, open database, call hook with db instance inside App component.

import { useSQLiteDevTools } from 'expo-sqlite-devtools'; import * as SQLite from 'expo-sqlite'; const db = SQLite.openDatabaseSync('mydb.db'); export default function App() { useSQLiteDevTools(db); return null; }
Debug
Known issues
gotchauseSQLiteDevTools must be called inside a React component as it uses hooks (e.g., useEffect).
fix
Ensure the hook is called inside a React function component, not in a plain function or outside component.
affects: >=0.0.0
breakingRequires expo 50+ (peer dependency).
fix
Update expo to version 50 or later.
affects: >=0.0.0
deprecatedPackage is in early development (v0.0.2) and API may change without notice.
fix
Pin exact version in package.json to avoid breaking changes.
affects: <1.0.0
gotchaThe devtools plugin only works when the Expo DevTools UI is open (e.g., via Expo Orbit browser).
fix
Ensure your app is running in Expo development mode and DevTools are connected.
affects: >=0.0.0
Errors
Common errors & fixes
Error: useSQLiteDevTools is not a function
CommonJS require tries to get default export, but package exports named export only.
fix
Use `import { useSQLiteDevTools } from 'expo-sqlite-devtools'` instead of `require`.
Error: Invalid hook call. Hooks can only be called inside of the body of a function component.
useSQLiteDevTools is called outside a React component or inside a class component.
fix
Move the hook call into a React function component (e.g., the App component).
Error: Cannot find module 'expo-sqlite'
Missing peer dependency expo-sqlite.
fix
Run `npx expo install expo-sqlite` to install the database module.
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies
exporequiredRelies on Expo DevTools plugin system and Expo SQLite API.
Agent activity
5 hits · last 30 days
node
4
Resources
expo-sqlite-devtools — npm install expo-sqlite-devtools · libregistry