Invariant Violation: requireNativeComponent: "RNCWKWebView" was not found in the UIManager.


react-native  0.60以上版本安裝第三方庫的時候會autolink  出現這個問題是 我安裝 react-native-webview 之后運行 ios出現的,這是因為ios 沒有自動安裝依賴庫 此時:

1.  cd ios

2.  pod install

就會安裝ios所需要的庫  

 

類似的報錯還有很多 比如:null is not an object (evaluating '_RNGestureHandlerModule.default.Direction')

這個是安裝 react-navigation  的時候附帶安裝的  react-native-gesture-handler  還是進入ios 根目錄  pod install 就可以

千萬別相信網上說的再xcode工程的 liabrarys文件夾 添加依賴工程 添加完就編譯報錯。也不要相信  react-native link  ,如果你是0.60 以上版本。

同樣類似的問題也適用 例如:

Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM