core-decorators icon indicating copy to clipboard operation
core-decorators copied to clipboard

react-native 0.42.3 SyntaxError 'Unxpected Token"

Open GuelorEmanuel opened this issue 8 years ago • 3 comments

@autobind does not work for the latest RN

GuelorEmanuel avatar Mar 30 '17 08:03 GuelorEmanuel

Hey thanks for reporting. I would need some way to reproduce this. Can you provide any specific details and a minimum way to reproduce it? Where is the SyntaxError happening?

jayphelps avatar Mar 30 '17 17:03 jayphelps

@jayphelps You can reproduce this by creating a new React-Native sample project -> "https://facebook.github.io/react-native/docs/getting-started.html", and then by using this module on the main index.ios.js file. The error occur on the line where the @autobind keyword is used, I believe react cant interpret the "@" symbol.

GuelorEmanuel avatar Mar 31 '17 19:03 GuelorEmanuel

any solution yet?

ZeroCool00 avatar Oct 31 '18 06:10 ZeroCool00