React Native之报错await is a reserved word

老样子,先贴出报错信息:

React Native之报错await is a reserved word_第1张图片


解决办法:

函数中有异步操作的时候,函数名前要加async,如async getSystemAccount() { await...}

你可能感兴趣的:(React,Native)