diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index f6b5efe4a5..2024e37cff 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native 0.56 +// Type definitions for react-native 0.57 // Project: https://github.com/facebook/react-native // Definitions by: Eloy DurĂ¡n // HuHuanming @@ -2244,6 +2244,11 @@ export interface WebViewPropsIOS { * `WebView`. The default value is `true`. */ scrollEnabled?: boolean; + + /** + * If `true`, use WKWebView instead of UIWebView. + */ + useWebKit?: boolean; } export interface WebViewUriSource { diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index 85d3285329..cae24b72c4 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -663,10 +663,11 @@ class WebViewTest extends React.Component { render() { return ( event.navigationType !== 'formresubmit'} + originWhitelist={['https://origin.test']} + saveFormDataDisabled={false} + useWebKit={true} /> ); }