尝试在 react-native 中使用 async/await 时,出现以下错误:
uncaught error Error: SyntaxError: /Users/senthilsivanath/Documents/MusicTulip/index.ios.js: Unexpected token (50:23)
48 | renderScene: function(route,nav) {
49 | try {
50 | const response = await signIn.isLoggedIn();
我的.babelrc
文件是:
{ "presets": ["react-native", "es2015", "babel-preset-stage-3"] }