import React from 'react'; import { AndroidWebViewProps, NativeWebViewAndroid, State } from './WebViewTypes'; /** * Renders a native WebView. */ declare class WebView extends React.Component { static defaultProps: { overScrollMode: string; javaScriptEnabled: boolean; thirdPartyCookiesEnabled: boolean; scalesPageToFit: boolean; allowsFullscreenVideo: boolean; allowFileAccess: boolean; saveFormDataDisabled: boolean; cacheEnabled: boolean; androidHardwareAccelerationDisabled: boolean; originWhitelist: string[]; }; static isFileUploadSupported: () => Promise; startUrl: string | null; state: State; webViewRef: React.RefObject; getCommands: () => import("./WebViewTypes").WebViewCommands; goForward: () => void; goBack: () => void; reload: () => void; stopLoading: () => void; requestFocus: () => void; postMessage: (data: string) => void; /** * Injects a javascript string into the referenced WebView. Deliberately does not * return a response because using eval() to return a response breaks this method * on pages with a Content Security Policy that disallows eval(). If you need that * functionality, look into postMessage/onMessage. */ injectJavaScript: (data: string) => void; /** * We return an event with a bunch of fields including: * url, title, loading, canGoBack, canGoForward */ updateNavigationState: (event: import("react-native").NativeSyntheticEvent) => void; /** * Returns the native `WebView` node. */ getWebViewHandle: () => number; onLoadingStart: (event: import("react-native").NativeSyntheticEvent) => void; onLoadingError: (event: import("react-native").NativeSyntheticEvent) => void; onHttpError: (event: import("react-native").NativeSyntheticEvent) => void; onLoadingFinish: (event: import("react-native").NativeSyntheticEvent) => void; onMessage: (event: import("react-native").NativeSyntheticEvent) => void; onLoadingProgress: (event: import("react-native").NativeSyntheticEvent) => void; onShouldStartLoadWithRequestCallback: (shouldStart: boolean, url: string) => void; render(): JSX.Element; } export default WebView; //# sourceMappingURL=WebView.android.d.ts.map