react-native-sqlite-storage provides native SQLite3 bindings for React Native on Android and iOS. Version 6.0.1 supports both callback and Promise-based APIs, transactions, pre-populated database import, and Windows via callback. It requires react-native >=0.14.0 and has been tested with React 16.2. The library is the standard choice for SQLite in React Native, offering a familiar Cordova-like API. It supports automatic linking via CocoaPods for RN >=0.60 and manual linking for older versions.
npm install react-native-sqlite-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Open a SQLite database, create table, insert and select data using callbacks.
Call enablePromise(true) once at app startup.
Run 'cd ios && pod install' after npm install.
Use { name: 'mydb', location: 'default' }.Use ES6 named imports.
Use promise-based transactions with execSQL for async operations.
Run 'npm install react-native-sqlite-storage' and for RN <0.60: 'react-native link react-native-sqlite-storage'.
Add 'sqlite3.0.tbd' to 'Link Binary With Libraries' in Xcode.
Use 'import { SQLite } from 'react-native-sqlite-storage'' instead of default import.Check that db is opened before performing operations; handle using promises/callbacks.