Giter Site home page Giter Site logo

agtlucas / react-native-es6-reflux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from filp/react-native-es6-reflux

0.0 1.0 0.0 75 KB

Boilerplate for iOS app development with React Native, ES6 and Reflux

License: MIT License

Objective-C 56.29% JavaScript 43.71%

react-native-es6-reflux's Introduction

react-native, es6 & reflux boilerplate

As the very long repo title indicates, this is a boilerplate repository that includes the following:

  • ES6-to-ES5 transpilation using Babel
  • Uni-directional data-flow architecture using Reflux

Getting started

  1. Clone this project

  2. Install dependencies:

    $ npm install
  3. Start the webpack watcher (it builds the index.ios.js file expected by React Native)

  4. Open ReactNativeEs6Reflux.xcodeproj in XCode and run the project - it should look like this:

    iOS Simulator running this boilerplate

Javascript file structure

  - src/
    stores/ -  Reflux stores
      color_store.js - Example store implementation
    components/ - React components
      app.jsx - Top-level app component

    action.js - Reflux action definitions
    styles.js - StyleSheet definition(s)
    main.js   - Application bootstrap with react-native, transpiler entry-point

Included in the example:

  • A simple top-level App component with example styles (in src/styles.js)
  • An example interaction using TouchableOpacity, and an example Reflux action (defined in src/actions.js)
  • An example AppMessageStore Reflux store, which handles setting the random message when the React logo is tapped.

Author

This boilerplate was created by Filipe Dobreira. It includes auto-generated code (through react-native init), and code by Roman Liutikov (namely the webpack configuration).

react-native-es6-reflux's People

Contributors

filp avatar

Watchers

Lucas 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.