ract native 报错系列
ES5/ES3 中的异步函数或方法需要 “Promise” 构造函数。确保对 “Promise” 构造函数进行了声明或在 “–lib” 选项中包含了 “ES2015”。
解决办法:RN开发 js jsx ts tsx的区别
详情看别人家总结报错 Building and installing the app on the device (cd android && gradlew.bat installDebug)…
Downloading http://10.10.82.235:8080/sdk-resources/gradle-4.6-all.zip
Exception in thread “main” java.net.ConnectException: Connection refused:
解决办法
1、 rm android/ -rf
2、 react-native eject
3、 runProps获取不到值
原因 箭头函数 this的指向丢了
解决办法