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). Once authorized, the database can be synced between multiple devices using Dropbox.
These instructions only cover iOS usage at this time.
npm install
Install iOS dependencies (requires Cocoapods)
pushd ios/
pod install
popd
npm start
npm run tsc -- -w
npm test
code .
With the "React Native Tools" VSCode extension installed, open the Debug tab and press the "Play" button with "Debug iOS" selected in the dropdown.
When the simulator opens, press Command-D to open the developer menu. Tap "Debug JS Remotely" to connect VSCode to the app and enable debugging.
Alternatively:
open ios/RNSQLiteDemo.xcworkspace
Select a simulator of your choice. Press the "run" button.
End-to-end testing happens from within the e2e/
directory:
cd e2e/
npm install
npm run test:e2e:build
npm run test:e2e
Details on this workflow can be found here:
npm run test:e2e:reuse
npm start -- --reset-cache