$ npm install @exodus/react-native-webviewReact Native WebView is a modern, well-supported, and cross-platform WebView for React Native. It is intended to be a replacement for the built-in WebView (which will be removed from core).
This project is a fork of https://github.com/react-native-webview/react-native-webview. Please refer to that repository for full credits.
Read our Getting Started Guide. If any step seems unclear, please create a detailed issue.
This project follows semantic versioning. We do not hesitate to release breaking changes but they will be in a major version.
Breaking History:
Current Version:
android/gradle.properties. See Getting Started Guide.Upcoming:
Import the WebView component from react-native-webview and use it like so:
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { WebView } from 'react-native-webview';
// ...
class MyWebComponent extends Component {
render() {
return <WebView source={{ uri: 'https://reactnative.dev/' }} />;
}
}
For more, read the API Reference and Guide. If you're interested in contributing, check out the Contributing Guide.
Invariant Violation: Native component for "RNCWebView does not exist" it likely means you forgot to run react-native link or there was some error with the linking process:app:mergeDexRelease, you need to enable multidex support in android/app/build.gradle as discussed in this issueSee Contributing.md
This project is a fork of https://github.com/react-native-webview/react-native-webview. Please refer to that repository for full credits.
MIT
This readme is available in: