在react-native官网上看到,webView要移除,推荐使用react-native-webVIew的组件库,按照API使用 不知道为什么就会报错,使用原生的webVIew组件就没有问题,求老实给解答下
只有下面着一点代码
import { WebView } from "react-native-webview";
<View style={styles.container}>
<WebView
source={{ uri: params.htmlUrl }}
startInLoadingState={true}
/>
</View>
报错为:
Invariant Violation: requireNativeComponent: "RNCWKWebView" was not found in the UIManager.