簡體   English   中英

react-native與現有ios應用程序集成

[英]react-native integrating with existing ios apps

遵循了這里的指示:

https://facebook.github.io/react-native/docs/embedded-app-ios.html#content

我能夠安裝所需的react子規范,並通過pod install來進行react規范。我還能夠運行本地react服務器來服務捆綁包。

但是我看到以下問題阻止我的應用在iOS模擬器中啟動。

/.../node_modules/react-native/React/Executors/RCTContextExecutor.m:560:7: Comparison of function 'JSGlobalContextSetName' not equal to a null pointer is always true


/.../node_modules/react-native/React/Base/RCTRootView.m:230:17: Method override for the designated initializer of the superclass '-initWithFrame:' not found

有人可以幫助解密發生的事情嗎? 似乎它是特定於React庫中的RCTRootView實現的。

我發現問題出在哪里,我啟動了react-native應用程序。 它不是從項目根目錄運行的。 修復了在模擬器中啟動應用的問題,這些警告並不是真正的根本原因。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM