gronxb/webview-bridge
소개
React Native WebView와 웹 간의 완전한 타입 안전 연동입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
webview-bridge
Fully Type-Safe Integration for React Native WebView and Web
webview-bridge is a powerful interface that acts as a bridge between React Native and web applications using react-native-webview. It providing seamless interaction and ensuring type safety.
Inspired by the functionality of tRPC, webview-bridge simplifies the communication process between react-native-webview and web applications.
Key Features:
- Built upon
react-native-webview. - Designed with zero external dependencies (except for
react-native-webview). - Type-Safety
- Backward Compatibility
- No App Review Needed
- Shared State
- React Hooks in native methods with
delegate() - Runtime validation with Standard Schema (Zod, Valibot, ArkType, ...)

Documentation
visit Docs
Example
visit Example
Exporting Type Declarations
To enhance your experience with webview-bridge, it's recommended to export the type declaration of the native bridge object to the web application. Here are a few ways to achieve this:
- Monorepo Setup (Recommended): Use a monorepo setup to export the type of the native bridge.
- Custom Declaration File: Build a bridge declaration file using tsc and move the file as needed.
- Private npm Registry: Utilize a private npm registry to export the type of the native bridge.
Contributor Guide
If you would like to contribute to webview-bridge by submitting bug fixes or performance improvements, please refer to our CONTRIBUTING.md guide for detailed instructions. We welcome and appreciate your contributions.
관련 프로젝트 살펴보기
불러오는 중…