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

SyntaxError /node_modules/.../TabNavigator.js:Unexpected token (19:19) #10

Closed superlbr closed 8 years ago

superlbr commented 8 years ago

I'm a new commer,how should I use babel with option metioned in readme?

superlbr commented 8 years ago

is there a example?

superlbr commented 8 years ago

ok,I got it. just pust .babelrc in the root of the project. some thing like { "retainLines": true, "compact": true, "comments": false, "whitelist": [ "es6.modules", "es7.classProperties", "es7.decorators", "regenerator", "flow", "react", "react.displayName" ], "sourceMaps": false }