From d11184a207568adc1041ddc55c24edcd30e17c79 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Tue, 25 Sep 2018 10:10:12 +0200 Subject: [PATCH] react-native: Added useWebKit property to WebViewProps. --- types/react-native/index.d.ts | 7 ++++++- types/react-native/test/index.tsx | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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} /> ); }