{
  "name": "react-native-starter",
  "version": "1.1.1",
  "private": false,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
  },
  "dependencies": {
    "events": "^1.1.1",
    "flux": "^2.1.1",
    "react-native-drawer": "^2.3.0",
    "react-native-vector-icons": "^2.1.0",
    "react-native-fs": "2.1.0-rc.1",
    "blueimp-md5": "^2.4.0",
    "validator": "^6.1.0"
  },
  "readme": "----------\n# React Native Starter Kit\n\n####Routing + Sidemenu + Flux + Images and Data Cache\nA package that brings the basic functionality needed to build a React Native application. It helps you with the routing of your applications, a simple way to build a sidemenu, manages your state with flux and gives you a super easy way to cache images and data.\n# Contents\n\n-\t[What is included?](##what-is-included)\n-\t[Routing](#testimonials)\n\n##What is inclueded\n\n - Routing\n\t - A simple class to move around your application, you just have to register your view Object and you are good to go.\n - Sidemenu\n\t - Simplified [Drawer](https://github.com/root-two/react-native-drawer) to be used as a sidemenu in all your applications.\n - Flux\n\t - React Native Starter Kit comes with Flux implemented, to create your stores you only need to extend from our **BaseStore** and make all the actions you need.\n - Cache\n\t - I know how necessary it is for an application to use local cache and avoid multiple REST requests or to download images and store them locally to boost performance. So I built a really easy to use **CacheService** to help you out.\n\n##Routing\nIts really easy to use the routing system, you need to use Navigator component from react native and make a mapper object to register your routes:\n\n    import React, { Component } from 'react';\n    import {AppRegistry, Navigator} from 'react-native';\n    import {Router} from 'react-native-starter';\n\t\n\timport LoginView from './views/LoginView';\n\timport HomeView from './views/HomeView';\n\tconst mapper = [\n\t\t{name: 'index', component: LoginView},\n\t\t{name: 'home', component: HomeView},\n\t];\n\t\n    class FirstReactApp extends Component {\n      constructor(props){\n\t\tsuper(props);\n\t\tRouter.register(mapper);\n      }\n    \n      render() {\n        return (\n          <Navigator\n            initialRoute={Router.index()}\n            renderScene={this.renderSceneNavigator.bind(this)}\n          />\n        );\n      }\n    \n    \n      renderSceneNavigator(route, nav)\n      {\n        Router.setNavigator(nav);\n        const Component = route.component;\n        return(\n              <Component _params={route._params} />\n        );\n      }\n    }\n    \n    AppRegistry.registerComponent('ReactTest', () => FirstReactApp);\n\n####**Methods**\n**static register(MapperArray)**\nCall this function on the constructor of your index file, it is an array of objects containing your routes. Each object must have two key: 'name' and 'component'\n \n ***params:***\n\n - Array:\n\t - Object:\n\t\t - name: Name you will use when you want to move to this view, there is only one reserved name and it is 'index', the view registerd as 'index' will be your initial view.\n\t\t - component: React Native Component to render\n\n----------\n\n\n**static setNavigator(Navigator nav)**\nUpdates the current state of your navigator, you must pass the second argument retorned in the *renderScene* funcion of the Navigator component\n\n\n----------\n\n\n**static index()**\nReturns the index component\n\n\n----------\n\n\n**static openView(String name, Object params)**\nOpens a new view, if the view was already registered in the stack it will replace it and any state will be reset.\nThe *params* object wil be used to pass parameters to the view.\n\n\n----------\n\n\n**static jumpTo(String name, Object params)**\nMoves to a view previously added to the stack, if the view is not in the stack(was never open) it will be opened and added. This is the best option to move to a view. The current state of the view will not be reset.\n\n\n",
  "readmeFilename": "README.md",
  "description": "---------- # React Native Starter Kit",
  "_id": "react-native-starter@1.0.6",
  "_shasum": "5f97a3c4f94510f6bfec47ef54ff0fd7b0bcf106",
  "_from": "react-native-starter@>=1.0.6 <2.0.0",
  "_resolved": "file:../React-Native-Starter/react-native-starter",
  "gitHead": "1b89cadcc3b0befee550e36aecc86c2216a38cd8",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/juanfe190/React-Native-Starter.git"
  },
  "bugs": {
    "url": "https://github.com/juanfe190/React-Native-Starter/issues"
  },
  "homepage": "https://github.com/juanfe190/React-Native-Starter#readme"
}
