An Offline-first List App Built with React Native and SQLite

An Offline-first List App Built with React Native and SQLite

React Native SQLite + Dropbox sync 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). Once authorized, the database can be synced between multiple iOS devices using Dropbox.

React Native SQLite + Dropbox sync 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). Once authorized, the database can be synced between multiple iOS devices using Dropbox.

These instructions cover iOS and macOS usage at this time.

Install JS dependencies

npm install

Install iOS dependencies (requires Cocoapods)

pushd ios/
pod install
popd

Install macOS dependencies

pushd macos/
pod install
popd

Start the React Native Metro Bundler

npm run start:macos

Run (and debug) on the iOS simulator

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.

Run on the macOS simulator

Open the macOS Xcode project:

open macos/RNSQLiteDemo.xcworkspace/

Select My Mac as the "active scheme". Press the "Build and then run" (Play) button.

Types and testing

Compile TypeScript source in watch mode

npm run tsc -- -w

Run the Jest unit tests

npm test

E2E Testing with Detox on iOS

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

cd e2e/
npm install
Build E2E tests
npm run test:e2e:build
Run E2E 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

Download Details:

Author: blefebvre

Demo: https://implementationdetails.dev/blog/2020/05/03/react-native-offline-first-db-with-sqlite-hooks/

Source Code: https://github.com/blefebvre/react-native-sqlite-demo

react-native react mobile-apps

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

How native is React Native? | React Native vs Native App Development

Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.

React Native App Developers India, React Native App Development Company

Hire React Native app developers India from a preferred React Native app development company by innovative industry leaders. Let's Discuss Your Project.

React Native Mobile App Development

Skenix is providing React Native Development Services with qualified React Native App Developers. Get the best React Native App Development Services.

How React Native Is Shaping Mobile App Development

Are you a mobile app developer looking for more efficient tools for your projects? Mobile app development is getting tougher and tougher as the market continues to grow. As a developer, you need to develop Apps which meet the demands of your users. To achieve this, adopt the right tools, like the React Native development framework.

Top React Native Mobile App Development Companies in USA

Looking for top React Native mobile app development company in USA for Startups & Enterprise? Find out the top list of React Native mobile app development company in USA.