ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 415 forks source link

ReadMe UPDATE ? #20

Closed mohamedpsx closed 8 years ago

mohamedpsx commented 8 years ago

Hey could you update the readme file with like how to install and compile using babel ? it is not that clear

thx

jadsonlourenco commented 8 years ago

Yes don't have the installation on Readme, but is npm i react-native-tab-navigator --save, also has other issue about documentation that @ide need help https://github.com/exponentjs/react-native-tab-navigator/issues/19

I can help with this but I don't know the rules for that, if will be like Gitbooks or only on Readme, don't know.

ide commented 8 years ago

Create a file called .babelrc in your project root with this:

{
  "whitelist": [
    "es7.classProperties",
    "es7.decorators"
  ]
}

This will break in a couple of weeks with RN 0.16, which will move to Babel 6 though.

timzaak commented 8 years ago

if there any help to build with the lastest maste branch? I build with babel-plugin-transform-decorators and babel-plugin-transform-class-properties, but it goes wrong with my other code.