-
Notifications
You must be signed in to change notification settings - Fork 68
Unexpected token #60
Comments
You need to enable the "ES7 class properties" feature. Depending on if you are using Babel 5 or Babel 6, the way to do this is different but you should be able to find how to do this on Google or someone on Stack Overflow will be probably be able to answer. |
Was this ever solved? @ide your answer is incomplete |
You need to enable class properties syntax -- how you do that is dependent on your build process. |
How do you do it via npm install build process - I'm just in a normal react native init build |
RN 0.17+ supports class properties by default so it should just work for you. Otherwise you'll need to go into the packager (there's a file called transformer.js) and configure it accordingly. |
Is there a way to update to that with the project already created? |
The most reliable way is to create a new project. There's an upgrade script but it doesn't always work that well. |
will creating a new project automatically get me to 0.17 and not 0.14 |
Yes it will. Could you please use Stack Overflow for general questions about React Native? We would like to keep the issue tracker on this repo focused on ExNavigator bugs and features. |
yep sure thing |
Using react-native-router-flux and getting this error on build
The text was updated successfully, but these errors were encountered: