Jafeney 2016-11-18 [email protected]
"dependencies": {
"react-native-modalbox": "^1.3.8",
"react-native-wechat": "^1.7.0"
}
async
和await
是ES7
比较新的提案,让ReactNative
完全支持stage-0
,首先我们需要安装 babel-preset-react-native-stage-0
模块:
npm install babel-preset-react-native-stage-0 --save-dev
并设置 .babelrc
{
"presets": [ "react-native-stage-0" ],
}