Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

react-native-webview/react-native-webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

star this repoPRs WelcomeNPM VersionNpm 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 wasremoved 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 toJamon Holmgren fromInfinite 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, whilewe will prioritize reviewing and merging pull requests.

Platform compatibility

This project is compatible withiOS,Android,Windows andmacOS.
This project supports boththe old (paper)and the new architecture (fabric).
This project is compatible withexpo.

Getting Started

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

Versioning

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

Usage

Import theWebView component fromreact-native-webview and use it like so:

importReact,{Component}from'react';import{StyleSheet,Text,View}from'react-native';import{WebView}from'react-native-webview';// ...constMyWebComponent=()=>{return<WebViewsource={{uri:'https://reactnative.dev/'}}style={{flex:1}}/>;}

For more, read theAPI Reference andGuide. If you're interested in contributing, check out theContributing Guide.

Common issues

  • If you're gettingInvariant Violation: Native component for "RNCWebView does not exist" it likely means you forgot to runreact-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 inandroid/app/build.gradle as discussed inthis issue

Contributing

Contributions are welcome, seeContributing.md

License

MIT

Translations

This readme is available in:


[8]ページ先頭

©2009-2025 Movatter.jp