An offline first List app built with React Native and SQLite
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
android
e2e
ios
src
.buckconfig
.gitattributes
.gitignore
.prettierrc
.watchmanconfig
LICENSE
README.md
app.json
babel.config.js
index.js
package-lock.json
package.json
tsconfig.jest.json
tsconfig.json
tslint.json

README.md

React Native SQLite Demo

This project is a basic List application that demonstrates building an offline first app with SQLite and React Native (featuring TypeScript and CocoaPods under the hood). These instructions only cover iOS usage at this time.

Install dependencies

npm install

Compile TypeScript source in watch mode

npm run tsc -- -w

Run the Jest tests in watch mode

npm test -- --watch

Open the source in VS Code

code .

Open the Xcode project

open ios/RNSQLiteDemo.xcworkspace/

Run it on an iOS sim

Press "Play" button in Xcode.

E2E Testing with Detox

End-to-end testing happens from within the e2e/ directory:

cd e2e/
npm install

Build tests

npm run test:e2e:build

Run tests

npm run test:e2e

Run tests without reinstalling onto the Simulator

Details on this workflow can be found here:

npm run test:e2e:reuse

Troubleshooting

Run Metro Bundler and clear it's cache

npm start -- --reset-cache