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

13.12.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.12.5147,822latest
12.0.0-rc.21new-arch

Version History

VersionDownloads (Last 7 Days)Published
13.12.5147,822
13.12.439,341
13.12.335,657
13.12.240,660
13.12.13,277
13.12.03,234
13.11.11,634
13.11.017
13.10.7213
13.10.649
13.10.526,342
13.10.44,815
13.10.38,377
13.10.210,598
13.10.16
13.10.01,865
13.9.136
13.9.09
13.8.74,333
13.8.6134,112
13.8.5623
13.8.45,064
13.8.30
13.8.21,192
13.8.110,256
13.8.0363
13.7.2183
13.7.1257
13.7.0991
13.6.461,141
13.6.37,053
13.6.25,528
13.6.11,661
13.6.02,272
13.5.11,462
13.5.02
13.4.0186
13.3.12,073
13.3.0145
13.2.32,336
13.2.29,184
13.2.113
13.2.05
13.1.05
13.0.016
12.4.013,788
12.3.08
12.2.1299
12.2.05
12.1.01,338
12.0.387
12.0.22,134
12.0.1114
12.0.0466
12.0.0-rc.21
12.0.0-rc.10
11.26.1188,524
12.0.0-rc.00
11.26.036,446
11.25.11,582
11.25.0882
11.24.0365
11.23.125,296
11.23.05,336
11.22.713,463
11.22.6124
11.22.512
11.22.49
11.22.326
11.22.232
11.22.15
11.22.056
11.21.2104
11.21.1132
11.21.01
11.18.2145
11.18.1488
11.18.010
11.17.2399
11.17.16,695
11.17.044
11.16.017
11.15.20
11.15.1408
11.15.0324
11.14.4104
11.14.385
11.14.252
11.14.134
11.14.026
11.13.164
11.13.0938
11.12.03
11.11.02
11.10.00
11.9.010
11.8.00
11.7.00
11.6.66
11.6.5161
11.6.428
11.6.33
11.6.2303
11.6.15
11.6.04
11.5.01
11.4.70
11.4.61
11.4.515
11.4.415
11.4.386
11.4.245
11.4.11
11.4.011
11.3.294
11.3.113
11.3.03
11.2.60
11.2.517
11.2.412
11.2.395
11.2.21
11.2.19
11.2.02
11.1.00
11.0.37
11.0.2134
11.0.14
11.0.01,543
10.10.24,650
10.10.14
10.10.015
10.9.333
10.9.247
10.9.118
10.9.036
10.8.351
10.8.213
10.8.10
10.8.01
10.7.062
10.6.015
10.5.00
10.4.20
10.4.12
10.4.09
10.3.35
10.3.258
10.3.14
10.3.025
10.2.321
10.2.20
10.2.15
10.2.06
10.1.17
10.1.09
10.0.03
9.4.0931
9.3.00
9.2.215
9.2.15
9.2.02
9.1.414
9.1.36
9.1.20
9.1.16
9.1.02
9.0.210
9.0.110
9.0.05
8.2.1919
8.2.05
8.1.2479
8.1.112
8.1.017
8.0.697
8.0.51
8.0.45
8.0.386
8.0.23
8.0.1118
8.0.06
7.6.01,039
7.5.212
7.5.17
7.5.01
7.4.40
7.4.331
7.4.26
7.4.13
7.4.03
7.3.00
7.2.80
7.2.71
7.2.62
7.2.59
7.2.40
7.2.37
7.2.27
7.2.17
7.2.08
7.1.19
7.1.010
7.0.715
7.0.62
7.0.5561
7.0.42
7.0.30
7.0.29
7.0.119
7.0.01
6.11.1326
6.11.00
6.10.00
6.9.13
6.9.01
6.8.20
6.8.10
6.8.00
6.7.00
6.6.02
6.5.13
6.5.01
6.4.11
6.4.00
5.12.1148
6.3.11
5.12.05
6.3.01
6.2.31
5.11.04
6.2.23
6.2.11
6.2.00
6.1.10
5.10.02
6.1.01
5.9.110
6.0.21
5.8.214
5.8.1294
5.8.02
5.7.20
5.7.10
5.7.01
5.6.33
5.6.234
5.6.10
5.6.01
5.5.11
5.5.03
5.4.612
5.4.53
5.4.40
5.4.30
5.4.20
5.4.14
5.4.02
5.3.19
5.3.00
5.2.52
5.2.47
5.2.31
5.2.23
5.2.14
5.2.02
5.1.01
5.0.80
5.0.70
5.0.60
5.0.52
5.0.40
5.0.30
5.0.21
5.0.10
4.1.00
4.0.00
3.2.24
3.2.10
3.2.00
3.1.35
3.1.23
3.1.13
3.1.03
3.0.30
3.0.14
3.0.03
2.15.03
2.14.31
2.14.20
2.14.10
2.14.02
2.13.00
2.12.10
2.12.00
2.11.00
2.10.00
2.9.00
2.8.10
2.8.00
2.7.10
2.7.01
2.6.03
2.5.06
2.4.30
2.4.00
2.3.01
2.2.00
2.1.00
2.0.02

Package Sidebar

Install

npm i react-native-webview

Weekly Downloads

888,107

Version

13.12.5

License

MIT

Unpacked Size

650 kB

Total Files

121

Last publish

Collaborators

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