Browse Source

fix(types): export WebViewProps for external use (#457)

James Cleveland 5 years ago
parent
commit
ef709aa82b
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      index.d.ts

+ 3
- 1
index.d.ts View File

@@ -2,7 +2,9 @@ import { Component } from 'react';
2 2
 // eslint-disable-next-line
3 3
 import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes';
4 4
 
5
-declare class WebView extends Component<IOSWebViewProps & AndroidWebViewProps> {
5
+export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
6
+
7
+declare class WebView extends Component<WebViewProps> {
6 8
     /**
7 9
      * Go back one page in the webview's history.
8 10
      */