先在项目中安装:
yarn add react-native-webview
或者
npm install --save react-native-webview
ios下可能有如下错误:
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager
去ios文件夹下,执行 pod install 即可
先在项目中安装:
yarn add react-native-webview
或者
npm install --save react-native-webview
ios下可能有如下错误:
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager
去ios文件夹下,执行 pod install 即可