![]() ![]() Let’s get started by initializing a new Expo app. Expo Sqlite Examples and Templates Use this online expo-sqlite playground to view and fork expo-sqlite example apps and templates on CodeSandbox. import * as SQLite from 'expo-sqlite' Ĭonst database = SQLite.openDatabase('places. Building the React Native app with Expo SQLite and Datastore. This post assumes you have a working Expo React Native project, and that you are somewhat familiar with contexts, hooks, and state in React Native. There's no error, but I cant reach navigate function, which is coming next to await insert function.Īnd I keep getting warning that saids "Possible Unhandled Promise Rejection (id: 0)"īelow is my code to use SQLite. Local SQLite Database for Expo React Native App with Import and Export Database from Device Files MissCoding 3.33K subscribers Subscribe 6. yarn add react-native-quick-sqlite npx pod-install Quick SQLite embeds the latest version of SQLite and provides a low-level JSI-backed API to execute SQL queries. Usage To-do list app An example to-do list app is available that uses this module for storage. I installed expo-sqlite to init, insert, and fetch some data.īut I cant insert data in the first place. Installation Terminal Copy - npx expo install expo-sqlite If you're installing this in a bare React Native app, you should also follow these additional installation instructions. ![]()
0 Comments
Leave a Reply. |