Skip to content

alex-steinberg/ionic-react-sqlite-example

Repository files navigation

Ionic React with SQLite

Quick example of using SQLite with Ionic React. This was created using the blank Ionic starter app and the sample code on the SQLite plugin docs.

I've only used it with Android but iOS should work all the same.

Installation

Clone this repo then:

npm install

ionic cap open android

Plug in your device, run the app and tap the 'INIT DB' button.

Open Chrome, go to chrome://inspect and inspect the app to view the results in the JavaScript console.

To create the platform files from scratch, delete the ./android directory and generate the Android platform files.

rm -rf ./android

ionic cap add android

ionic cap sync

About

Simple example app to show how to use SQLite with Ionic React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published