在React应用程序中运行包含React-Native Webview的库时出现React-Native Webview错误

在React应用程序中运行包含React-Native Webview的库时出现React-Native Webview错误,react-native,npm,webview,react-native-webview,React Native,Npm,Webview,React Native Webview,我已经创建了一个使用Webview的react本机库。这是库的package.json "dependencies": { "react-native-webview": "*" }, 因此,我使用npm包和命令npm install packagename安装了库。 它在应用程序的node_模块中正确安装库和react native webview模块。当我运行应用程序时,我在调用库时收到错误 "depende

我已经创建了一个使用Webview的react本机库。这是库的package.json

"dependencies": {
    "react-native-webview": "*"
  },
因此,我使用npm包和命令
npm install packagename
安装了库。 它在应用程序的node_模块中正确安装库和react native webview模块。当我运行应用程序时,我在调用库时收到错误

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

不变冲突:在UIManager中找不到requireNativeComponent:“RNCWebView”。

如果您使用了任何npm,请共享您的package.json文件,他们使用旧的webview然后生成此类错误我已经创建了库或应用程序的npm package.package.json?我已经创建了使用react native webview的react native sdk。当我在我的应用程序中使用它时,我得到了上面的错误