Example of using react-native-router-flux and relay
See.
You need two repos: rnrf-relay-example(this repo) and relay-starter-kit!
relay-starter-kit
will work as graphql
backend for our example.
git clone https://github.com/r0b1n/rnrf-relay-example
git clone https://github.com/relayjs/relay-starter-kit
cd rnrf-relay-example && npm i
cd ../relay-starter-kit && npm i
In separate terminal run relay-starter-kit
by executing:
npm start
Run example react-native
app by executing in rnrf-relay-example
folder:
cd rnrf-relay-example # move to folder (if needed)
# then
react-native run-ios
# or
react-native run-android