NitroSQLite
React Native

Install on React Native

Install Nitro SQLite 10.5 in a React Native or Expo native app.

This guide adds react-native-nitro-sqlite 10.5 to a React Native app. The native module opens SQLite files inside the app's storage directory. After installation, run your first query.

Requirements

Nitro SQLite 10.5 requires React Native 0.75 or newer, React 17 or newer, and react-native-nitro-modules 0.37.1 or newer. It runs on iOS, macOS, visionOS, and Android. See supported platforms for details.

1. Install the packages

npm install react-native-nitro-sqlite@~10.5.0 react-native-nitro-modules@~0.37.2

2. Set up the native project

If your project has an ios directory, install the native pods after adding the packages:

npx pod-install

Android needs no additional Nitro SQLite configuration for the default setup. For a React Native macOS project, install CocoaPods from its macos directory. The configuration pages cover build options and platform storage settings.

3. Build the native app

An existing binary cannot load a native module added only to JavaScript. In a standard React Native CLI project, build the app for your platform:

npm run ios
# or
npm run android

If the app uses different scripts, run its equivalent native build.

Expo native builds

Expo Go cannot load this native module. Build a development app for your platform:

npx expo run:ios
# or
npx expo run:android

For optional features such as FTS5, vector search, or iOS App Groups, use the Expo config plugin.

4. Run a query

Continue with your first React Native query. It creates a table, saves a note, and reads the note back.

On this page