在React应用程序中运行具有react-native-webview的库时出现React Native Webview错误

问题描述 投票:0回答:1

我创建了一个使用 Webview 的 React Native 库。这是库的package.json。

"dependencies": {
    "react-native-webview": "*"
  },

所以我使用 npm 包和命令

npm install packagename
安装了库。 它在应用程序的node_modules中正确安装了库和react-native-webview模块。当我运行应用程序时,我在调用库时收到错误。

不变违规:requireNativeComponent:在 UIManager 中找不到“RNCWebView”。

react-native npm webview react-native-webview
1个回答
0
投票

Aman Verma 你能找到任何解决方案吗?

© www.soinside.com 2019 - 2024. All rights reserved.