react native 基础问题
coding_most
超级喜欢封装代码
展开
-
React Native WebView injectedJavaScript 报错window.postMessage
解决方案:定义injectedJavaScript(function() { var originalPostMessage = window.postMessage; var patchedPostMessage = function(message, targetOrigin, transfer) { originalPostMessage(message, targetOrigin, transfer); }; patchedPostMessage.toSt...原创 2020-06-16 23:35:07 · 1062 阅读 · 0 评论 -
React Native 运行android项目遇到的问题以及解决方案
最近升级Android Studio4.0后,在执行 react-native init test 命令后,用Android Studio 打开项目一直报错Gradle sync failed: Uninitialized object exists on backward branch 142Exception DetailsLocation:com/android/build/gradle/internal/pipeline/VariantInfoImpl.<init>.原创 2020-06-16 23:31:28 · 552 阅读 · 0 评论 -
react-native init 项目出现的问题
This will walk you through creating a new React Native project in /Users/x'x'x/Desktop/ReactNativeWS/smstestUsing yarn v1.22.4Installing react-native...yarn add v1.22.4info No lockfile found.[1/4] ???? Resolving packages...info There appears to原创 2020-06-16 23:20:19 · 764 阅读 · 0 评论