Giter VIP home page Giter VIP logo

react-native-navigation-mobx-boilerplate's Introduction

React Native Navigation + MobX (w/ Provider) Boilerplate ๐Ÿ‘ฝ

A simple boilerplate based on MobX (w/ Provider) instead of Redux and wix/react-native-navigation.

What's inside
  • Tab Based App.
  • Drawer. [for iOS] It supports .push({...})s for the first tab through MobX: Stores.App.rootNavigator.push({...}). You can change .rootNavigator in any component. (based on this issue)
  • Simple auth flow. For example, If you are not logged in (see Account store), the app opens a modal with text inputs.
  • MobX Provider. Now all components can use @inject('App', 'Counter', ...) for accessing stores through const { App, Counter } = this.props;. (based on this comment).
  • In a new version, structure of the project is more organized ๐Ÿ‘Œ
What's in package.json
  • react '16.0.0-alpha.12'
  • react-native '0.46.1'
  • react-native-navigation '1.1.134'
  • mobx '^3.1.15'
  • mobx-persist '^0.3.3'
  • mobx-react '^4.2.1'
  • flow-bin '^0.47.0'

Installation

  1. Clone this repo: git clone https://github.com/kanzitelli/react-native-navigation-mobx-boilerplate.git
  2. Install node modules: cd react-native-navigation-mobx-boilerplate && yarn install. Make sure yarn is installed on your machine.
  3. Rename application using react-native-rename if needed.
  4. react-native run-ios or react-native run-android (if you have any errors while building the project for iOS, remove the ios/build directory or visit facebook/react-native/issues/7308 for more information).
  5. Enjoy :)

Thanks to @megahertz for sharing the gist that shows how to create a mobx Provider which can be used with RNN.

react-native-navigation-mobx-boilerplate's People

Contributors

kanzitelli avatar

Watchers

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