Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-native-webview

> 编程语言
Open source

React Native Cross-Platform WebView

7.2K stars0 likes2 views
WebsiteGitHub

About

React Native Cross-Platform WebView

React Native WebView

React Native WebView is a community-maintained WebView component for React Native. It is intended to be a replacement for the built-in WebView (which was removed from core).

Maintainers

Many thanks to these companies for providing us with time to work on open source.
Please note that maintainers spend a lot of free time working on this too so feel free to sponsor them, it really makes a difference.

  • Thibault Malbranche (Twitter @titozzz) from Brigad
    Sponsor me ❤️ !

Windows and macOS are managed by Microsoft, notably:

  • Alexander Sklar (Twitter @alexsklar) from React Native for Windows
  • Chiara Mooney from React Native for Windows @ Microsoft

Shout-out to Jamon Holmgren from Infinite Red for helping a lot with the repo when he had more available time.

Disclaimer

Maintaining WebView is very complex because it is often used for many different use cases (rendering SVGs, PDFs, login flows, and much more). We also support many platforms.

Since WebView was extracted from the React Native core, nearly 500 pull requests have been merged.
Considering that we have limited time, issues will mostly serve as a discussion place for the community, while we will prioritize reviewing and merging pull requests.

Platform compatibility

This project is compatible with iOS, Android, Windows and macOS.
This project only supports the new architecture (fabric); the legacy architecture (paper) is no longer supported. This requires React Native 0.76 or newer (with the new architecture enabled) and iOS 15.1 or newer; on macOS, react-native-macos 0.76 or newer.
This project is compatible with expo.

Getting Started

Read our Getting Started Guide. If any step seems unclear, please create a pull request.

Versioning

This project follows semantic versioning. We do not hesitate to release breaking changes but they will be in a major version.

Usage

Import the WebView component from react-native-webview and use it like so:

typescript
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { WebView } from 'react-native-webview';

// ...
const MyWebComponent = () => {
  return (
    <WebView
      source={{ uri: 'https://reactnative.dev/' }}
      style={{ flex: 1 }}
    />
  );
};

For more, read the API Reference and Guide. If you're interested in contributing, check out the Contributing Guide.

Common issues

  • If you're getting 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
  • If you encounter a build error during the task :app:mergeDexRelease, you need to enable multidex support in android/app/build.gradle as discussed in this issue

Contributing

Contributions are welcome, see Contributing.md

License

MIT

Translations

This readme is available in:

  • Brazilian portuguese
  • French
  • Italian

Issues· 80 open

View all issuesOpen on GitHub
  • #3955

    NSInternalInconsistencyException crash when WKWebView dialog completion handler is not called during ViewController dismissal

    Type: feature requestUpdated Sep 10, 2026
  • #4028

    [iOS] `injectedJavaScriptObject` updates are not applied to an existing WKWebView (frozen at creation-time value)

    Type: bug reportUpdated Sep 9, 2026
  • #3994

    [iOS][New Architecture] WKWebView becomes fully transparent because `backgroundColor` is never forwarded to `RNCWebViewImpl` under Fabric

    Type: bug reportUpdated Aug 26, 2026
  • #3960

    Expose a way to register native WebView instances with Google Mobile Ads SDK WebView API for Ads

    Type: feature requestUpdated Aug 26, 2026
  • #3935

    decelerationRate crashes work when fast, normal is provided on Android

    Type: bug reportUpdated Aug 22, 2026
  • #3999

    [Android] Timeouting of onShouldStartLoadWithRequest

    Type: feature requestUpdated Aug 14, 2026
  • #3997

    [Android] Fullscreen video forcibly overrides the activity's orientation, causing an infinite portrait/landscape loop on orientation-locked screens

    Updated Aug 11, 2026
  • #3996

    injectedJavaScriptForMainFrameOnly={false} is ignored on Android. No way to inject into (cross-origin) iframes.

    Type: bug reportUpdated Aug 10, 2026
  • #3992

    Webview freezes and goes blank

    Type: bug reportUpdated Aug 9, 2026
  • #3980

    Windows (New Architecture): production feedback on the WebView2 implementation + offer of hardening PRs

    Updated Aug 4, 2026

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言