
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
react-native-webview-bootpay
Advanced tools
React Native WebView component for iOS, Android, macOS, and Windows
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).
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.
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.
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.
Read our Getting Started Guide. If any step seems unclear, please create a pull request.
This project follows semantic versioning. We do not hesitate to release breaking changes but they will be in a major version.
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.
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 issueContributions are welcome, see Contributing.md
MIT
This readme is available in:
iOS의 WKWebView는 첫 로딩 시 GPU, Networking, WebContent 프로세스 초기화로 4-6초 지연이 발생할 수 있습니다.
Bootpay React Native WebView는 모듈 로드 시 자동으로 프리워밍이 시작됩니다. 별도의 설정 없이도 첫 결제 화면 로딩 속도가 개선됩니다.
특별한 타이밍에 프리워밍을 시작하고 싶다면 수동으로 호출할 수 있습니다:
import { NativeModules } from 'react-native';
const { BPCWebViewModule } = NativeModules;
// 기본 호출 (0.1초 딜레이)
BPCWebViewModule.warmUp();
// 커스텀 딜레이로 호출 (UI 버벅임 시)
BPCWebViewModule.warmUpWithDelay(0.5);
// 메모리 부족 시 리소스 해제
BPCWebViewModule.releaseWarmUp();
| 메서드 | 설명 |
|---|---|
warmUp() | WebView 프로세스 미리 초기화 (자동 실행됨) |
warmUpWithDelay(delay) | 커스텀 딜레이(초)로 프리워밍 |
releaseWarmUp() | 프리워밍 리소스 해제 |
참고: Android에서는 이 기능이 no-op으로 동작합니다 (iOS 전용).
FAQs
React Native WebView component for iOS, Android, macOS, and Windows
We found that react-native-webview-bootpay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.