UNPKG

@react-native-webview-rpc/web

Version:

A type-safe RPC between React Native function and JavaScript inside WebView, powered by Comlink

9 lines (8 loc) 171 B
import * as Comlink from "comlink"; import { webViewRpcEndpoint } from "./endpoint"; function wrap() { return Comlink.wrap(webViewRpcEndpoint, {}); } export { wrap };