Demo React Native App for react-native-sync.
Setup the source code
- Download and unpack the demo app zip file
- Work in app folder:
yarn installto populate node_modules
react-native ejectto -create
react-native linkto link native lib
Run the app
Use Xcode to open the iOS project in the
react-native-sync-demo-master/ios folder. Run the app in simulator.
On the Settings tab, fill in the sync server and sync user info. Feel free to use our test server url:
http://18.104.22.168:8080/pervasync/server. Use user name
user2. Password is
After you save the server url and user credentials, navigate to the
Database tab and do a pull-to-refresh to start a sync session. The initial sync may take 100 seconds to pull down around a set of tables with 10 thousand records and a handful of files from sync server. After that, incremental sync would only take a couple of seconds. Use the
Files tabs to examine the DB table contents and view the synod files.
Your own sync server and React Native app
You can create your own app based on the demo or write it from scratch. Either way, check out react-native-sync for details of the sync API.