react-native-webview
TypeScript icon, indicating that this package has built-in type declarations

13.13.5 • Public • Published

React Native WebView

star this repo PRs Welcome NPM Version Npm Downloads

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.

Windows and macOS are managed by Microsoft, notably:

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 and both architectures of react-native.

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 supports both the old (paper) and the new architecture (fabric).
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:

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:

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
13.13.549,236latest
12.0.0-rc.27new-arch

Version History

VersionDownloads (Last 7 Days)Published
13.13.549,236
13.13.443,838
13.13.31,244
13.13.262,527
13.13.121,444
13.13.03,686
13.12.5297,225
13.12.411,068
13.12.320,793
13.12.226,273
13.12.12,525
13.12.01,987
13.11.11,300
13.11.020
13.10.7379
13.10.6151
13.10.515,279
13.10.45,870
13.10.37,957
13.10.26,206
13.10.19
13.10.02,347
13.9.121
13.9.013
13.8.76,400
13.8.6275,003
13.8.5620
13.8.44,745
13.8.36
13.8.2953
13.8.18,391
13.8.0372
13.7.2283
13.7.1210
13.7.0923
13.6.453,105
13.6.39,275
13.6.25,054
13.6.14,550
13.6.01,632
13.5.12,071
13.5.010
13.4.0387
13.3.12,799
13.3.0100
13.2.3897
13.2.27,405
13.2.129
13.2.017
13.1.07
13.0.015
12.4.019,447
12.3.05
12.2.1282
12.2.07
12.1.0863
12.0.3135
12.0.21,233
12.0.167
12.0.0174
12.0.0-rc.27
12.0.0-rc.110
11.26.1123,375
12.0.0-rc.08
11.26.021,771
11.25.11,952
11.25.0660
11.24.076
11.23.114,399
11.23.08,082
11.22.74,665
11.22.629
11.22.541
11.22.4143
11.22.311
11.22.29
11.22.17
11.22.065
11.21.224
11.21.1126
11.21.06
11.18.2269
11.18.1306
11.18.010
11.17.2373
11.17.113,513
11.17.027
11.16.053
11.15.214
11.15.1235
11.15.0238
11.14.489
11.14.388
11.14.2144
11.14.157
11.14.037
11.13.1311
11.13.01,490
11.12.07
11.11.07
11.10.05
11.9.012
11.8.07
11.7.04
11.6.67
11.6.5169
11.6.415
11.6.35
11.6.21,647
11.6.17
11.6.06
11.5.04
11.4.75
11.4.67
11.4.553
11.4.417
11.4.344
11.4.255
11.4.17
11.4.026
11.3.243
11.3.18
11.3.06
11.2.65
11.2.521
11.2.416
11.2.3516
11.2.25
11.2.173
11.2.048
11.1.06
11.0.327
11.0.2167
11.0.117
11.0.01,152
10.10.21,790
10.10.14
10.10.018
10.9.332
10.9.229
10.9.110
10.9.051
10.8.370
10.8.213
10.8.16
10.8.06
10.7.026
10.6.024
10.5.07
10.4.27
10.4.17
10.4.07
10.3.37
10.3.2217
10.3.110
10.3.09
10.2.312
10.2.25
10.2.110
10.2.021
10.1.16
10.1.05
10.0.07
9.4.0832
9.3.06
9.2.26
9.2.18
9.2.05
9.1.412
9.1.36
9.1.27
9.1.15
9.1.014
9.0.214
9.0.114
9.0.07
8.2.1742
8.2.010
8.1.2516
8.1.19
8.1.09
8.0.696
8.0.56
8.0.47
8.0.360
8.0.210
8.0.1306
8.0.06
7.6.01,348
7.5.226
7.5.131
7.5.05
7.4.45
7.4.362
7.4.211
7.4.18
7.4.017
7.3.05
7.2.87
7.2.77
7.2.68
7.2.55
7.2.46
7.2.36
7.2.25
7.2.18
7.2.07
7.1.18
7.1.014
7.0.79
7.0.66
7.0.5541
7.0.46
7.0.35
7.0.24
7.0.18
7.0.05
6.11.1339
6.11.05
6.10.08
6.9.15
6.9.08
6.8.210
6.8.16
6.8.07
6.7.06
6.6.04
6.5.18
6.5.06
6.4.17
6.4.06
5.12.1192
6.3.16
5.12.06
6.3.08
6.2.36
5.11.05
6.2.25
6.2.14
6.2.05
6.1.16
5.10.04
6.1.05
5.9.112
6.0.26
5.8.26
5.8.178
5.8.08
5.7.26
5.7.15
5.7.03
5.6.35
5.6.231
5.6.17
5.6.05
5.5.15
5.5.04
5.4.66
5.4.56
5.4.46
5.4.37
5.4.26
5.4.16
5.4.06
5.3.16
5.3.08
5.2.56
5.2.46
5.2.36
5.2.25
5.2.111
5.2.05
5.1.06
5.0.83
5.0.76
5.0.66
5.0.55
5.0.46
5.0.36
5.0.24
5.0.16
4.1.06
4.0.05
3.2.26
3.2.14
3.2.06
3.1.37
3.1.27
3.1.15
3.1.07
3.0.37
3.0.15
3.0.04
2.15.016
2.14.35
2.14.25
2.14.16
2.14.07
2.13.06
2.12.14
2.12.07
2.11.09
2.10.07
2.9.04
2.8.14
2.8.09
2.7.16
2.7.07
2.6.05
2.5.07
2.4.35
2.4.05
2.3.07
2.2.05
2.1.06
2.0.05

Package Sidebar

Install

npm i react-native-webview

Weekly Downloads

1,194,466

Version

13.13.5

License

MIT

Unpacked Size

653 kB

Total Files

121

Last publish

Collaborators

  • react-native-community-bot
  • salakar
  • titozzz
  • jamonholmgren