瀏覽代碼
Fix(types): Update Typescript definition file, declaring WebView class as a generic class (#1604)
Co-authored-by: iou90kant <dekang.liu@guokr.com>
iou90
5 年之前
No account linked to committer's email address
|
|
|
|
|
|
6
|
|
6
|
|
|
7
|
export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
|
7
|
export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
|
|
8
|
|
8
|
|
|
9
|
-declare class WebView extends Component<WebViewProps> {
|
|
|
|
|
|
9
|
+declare class WebView<P = {}> extends Component<WebViewProps & P> {
|
|
10
|
/**
|
10
|
/**
|
|
11
|
* Go back one page in the webview's history.
|
11
|
* Go back one page in the webview's history.
|
|
12
|
*/
|
12
|
*/
|