react-native-sqlite-helper is a Promise-based wrapper for react-native-sqlite-storage, providing non-blocking SQLite operations in React Native. It offers a functional SQL interface with formatted return values (arrays of objects). Current stable version is 1.1.4 (last updated 2022?). It requires react-native-sqlite-storage as a peer dependency, which must be linked natively. Differentiators: simpler Promise API compared to the callback-based react-native-sqlite-storage, and no native code inclusion itself, relying on the parent library.
npm install react-native-sqlite-helperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates typical CRUD operations: open database, create table, insert, query, and close. Note that executeSql returns an array of objects directly (formatted return).
Install react-native-sqlite-storage via npm, then run react-native link react-native-sqlite-storage or follow the Android/iOS linking steps.
Use openDB with a unique name for each database; the library internally manages a singleton connection map based on database name. Always call openDB before any operations.
Use async/await and treat the result as a plain array of row objects.
Consider switching to alternatives like react-native-quick-sqlite or expo-sqlite, or use react-native-sqlite-storage directly.
npm install react-native-sqlite-storage && react-native link react-native-sqlite-storage
Use: import SQLite from 'react-native-sqlite-helper'
Ensure await SQLite.openDB({ name: 'mydb.db', location: 'default' }) is called before any database operations.