React Native Cordova WebView is Cordova Web View component for React Native. The main reason to use this component instead of react-native-webview is to use Cordova plugins.
- Display web content inside a React Native view.
- Use the features of any Cordova plugin from the Javascript loaded by the CordovaWebView. (Each plugin need to be install separately)
- Send messages to React Native from the Javascript loaded by the CordovaWebView.
This project is compatible with iOS and Android.
Import the CordovaWebView
component from react-native-cordova-webview
and use it like so:
import React from 'react';
import { CordovaWebView } from 'react-native-cordova-webview';
// ...
const MyWebComponent = () => {
return <CordovaWebView source={{ uri: 'https://reactnative.dev/' }} style={{ flex: 1 }} />;
}