ptomasroos / react-native-tab-navigator

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

How do i enable babel options? #18

Closed BigPun86 closed 9 years ago

BigPun86 commented 9 years ago

Hey there. I didn´t get it how to enable babel options... I am using WebStorm, do i need to enable it in here?

ide commented 9 years ago

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

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

It depends on your setup, so if you are doing something custom you may need to configure Babel another way but that's the gist.

BigPun86 commented 9 years ago

Okay great thanks. But didn´t work for me, and i am not sure how i did setup up babel :P But i´ll find a way...