Giter Site home page Giter Site logo

rnrf-relay-example's Introduction

rnrf-relay-example

Example of using react-native-router-flux and relay

How to run

1. Install react-native

See.

2. Clone repos

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

3. Perform npm install in both repos.

cd rnrf-relay-example && npm i
cd ../relay-starter-kit && npm i

4. Run backend

In separate terminal run relay-starter-kit by executing:

npm start

5. Run mobile application.

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

rnrf-relay-example's People

Contributors

r0b1n avatar sibelius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rnrf-relay-example's Issues

Pagination

Hello, thanks for providing this. How would I go about paginating data correctly?

Building this project failed

After running react-native run-ios the build failed with:
Installing build/Build/Products/Debug-iphonesimulator/rnrf_relay_example.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle.

Its running on iOS emulator 10.3.

Can I use widget here?

instead of using node can I use widget?

instead of {node: () => Relay.QLquery { node(id: $nodeID) },}} can I do this:

{widget: () => Relay.QLquery { widget(id: $nodeID) } ,}} ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.