This is an example usage of RxDB with React-native. It implements a simple heroes-list which can be filled by the user.
For database replication and syncing you will need to input a public ip address as the app simulators will have a different context for localhost
. One simple way is to run a server locally and expose the port via ngrok.
- follow installation instructions to setup your react-native environment (follow instructions for Expo)
- clone the whole RxDB-repo
- go into project
cd rxdb
- run
npm install
- go to this folder
cd examples/react-native
- run
npx yarn install
- run
npm start
- to run on ios or android specific emulators use
npm run ios
andnpm run android
respectively
- to run on ios or android specific emulators use
- It use current version RxDB (see preinstall script). Tested with rxdb@12.7.16