import { WebViewProps as RNWebViewProps } from 'react-native-webview'; import { WebViewSourceUri } from 'react-native-webview/lib/WebViewTypes'; export interface WebViewBrowserFeatures { /** Whether to allow the WebView to access video input devices. */ camera?: boolean; /** Whether to allow the WebView to access audio input devices. */ microphone?: boolean; /** Whether to allow the WebView to use fullscreen API. */ fullscreen?: boolean; } export interface WebViewProps extends RNWebViewProps { source: WebViewSourceUri; onLoad?(): void; onBridgeReady?(): void; onMessage?(data: unknown): void; browserFeatures?: WebViewBrowserFeatures; featurePolicy?: string; } export interface WebViewApi { postMessage(data: unknown): void; }