@datadog/mobile-react-native-webview
Version:
A client-side React Native module to interact with react-native-webview and Datadog
33 lines • 1.36 kB
TypeScript
import type { WebViewProps } from 'react-native-webview';
import { WebView as RNWebView } from 'react-native-webview';
import React from 'react';
type Props = WebViewProps & {
/**
* The list of allowed hosts for Datadog WebView tracking.
*/
allowedHosts?: string[];
/**
* Whether injected User JS Code errors should be logged to Datadog (default: false).
*/
logUserCodeErrors?: boolean;
/**
* Custom JS Code to inject before the WebView content is loaded.
*/
injectedJavaScriptBeforeContentLoaded?: string;
};
export declare const WebView: React.ForwardRefExoticComponent<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & import("react-native-webview/lib/WebViewTypes").WindowsWebViewProps & {
/**
* The list of allowed hosts for Datadog WebView tracking.
*/
allowedHosts?: string[] | undefined;
/**
* Whether injected User JS Code errors should be logged to Datadog (default: false).
*/
logUserCodeErrors?: boolean | undefined;
/**
* Custom JS Code to inject before the WebView content is loaded.
*/
injectedJavaScriptBeforeContentLoaded?: string | undefined;
} & React.RefAttributes<RNWebView<Props>>>;
export default WebView;
//# sourceMappingURL=index.d.ts.map