4 Star 1 Fork 0

UnPourTous/react-native-webview

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.d.ts 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
import { Component } from 'react';
// eslint-disable-next-line
import { IOSWebViewProps, AndroidWebViewProps, WindowsWebViewProps } from './lib/WebViewTypes';
export { FileDownload, WebViewMessageEvent, WebViewNavigation } from "./lib/WebViewTypes";
export type WebViewProps = IOSWebViewProps & AndroidWebViewProps & WindowsWebViewProps;
declare class WebView<P = {}> extends Component<WebViewProps & P> {
/**
* Go back one page in the webview's history.
*/
goBack: () => void;
/**
* Go forward one page in the webview's history.
*/
goForward: () => void;
/**
* Reloads the current page.
*/
reload: () => void;
/**
* Stop loading the current page.
*/
stopLoading(): void;
/**
* Executes the JavaScript string.
*/
injectJavaScript: (script: string) => void;
/**
* Focuses on WebView redered page.
*/
requestFocus: () => void;
/**
* Posts a message to WebView.
*/
postMessage: (message: string) => void;
/**
* (Android only)
* Removes the autocomplete popup from the currently focused form field, if present.
*/
clearFormData?: () => void;
/**
* (Android only)
* Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used.
*/
clearCache?: (clear: boolean) => void;
/**
* (Android only)
* Tells this WebView to clear its internal back/forward list.
*/
clearHistory?: () => void;
}
export {WebView};
export default WebView;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/UnPourTous/react-native-webview.git
git@gitee.com:UnPourTous/react-native-webview.git
UnPourTous
react-native-webview
react-native-webview
master

搜索帮助