Git Product home page Git Product logo

falcor-react-native-demo's Introduction

falcor-react-native-demo

Example app using Falcor inside of a React Native application

Getting Started

There's two parts to this application - the Falcor service itself, and the React Native client that makes a call to it:

  • The server directory contains the code to the Falcor service.

  • The client directory contains the React Native application.

Running the Falcor service

Inside the server directory, run:

$ npm install
$ npm run start

You should see the Falcor service start running on port 3000 (by default).

Running the React Native application

Follow the Getting Started instructions on the official React Native site, if you haven't done so already.

Inside the client directory, run:

$ npm install

Then, if you're running the iOS application, run:

$ react-native run-ios

If you're running the Android application, you'll need to get your IP address first, since the Android emulator assumes that localhost is within the emulator itself.

You can usually get it on the command line with ipconfig getifaddr en1 or ipconfig getifaddr en0.

Then, replace the server variable in index.android.js with your local IP address:

const server = '123.45.67.89';

Then, you can just run the Android application with:

$ react-native run-android

If everything works, you should see "Hello from Falcor!" inside the app!

falcor-react-native-demo's People

Contributors

clarle avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.