From 15a6882cec1113a4195c4ce5e974d9ccaa15894f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Hilmar=20G=C3=BAstafsson?= Date: Thu, 21 Jan 2021 14:56:53 +0000 Subject: [PATCH 1/2] remove RN 0.63 props --- src/ReactNativeWebView.re | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/ReactNativeWebView.re b/src/ReactNativeWebView.re index bbf2a0d..da42485 100644 --- a/src/ReactNativeWebView.re +++ b/src/ReactNativeWebView.re @@ -241,35 +241,6 @@ external make: ~ignoreSilentHardwareSwitch: bool=?, ~thirdPartyCookiesEnabled: bool=?, ~userAgent: string=?, - // View props 0.63.0 - ~accessibilityActions: array(Accessibility.actionInfo)=?, - ~accessibilityElementsHidden: bool=?, - ~accessibilityHint: string=?, - ~accessibilityIgnoresInvertColors: bool=?, - ~accessibilityLabel: string=?, - ~accessibilityLiveRegion: Accessibility.liveRegion=?, - ~accessibilityRole: Accessibility.role=?, - ~accessibilityState: Accessibility.state=?, - ~accessibilityValue: Accessibility.value=?, - ~accessibilityViewIsModal: bool=?, - ~accessible: bool=?, - ~collapsable: bool=?, - ~hitSlop: View.edgeInsets=?, - ~importantForAccessibility: [@bs.string] [ - | `auto - | `yes - | `no - | [@bs.as "no-hide-descendants"] - `noHideDescendants - ] - =?, - ~nativeID: string=?, - ~needsOffscreenAlphaCompositing: bool=?, - ~onAccessibilityAction: Accessibility.actionEvent => unit=?, - ~onAccessibilityEscape: unit => unit=?, - ~onAccessibilityTap: unit => unit=?, - ~onLayout: Event.layoutEvent => unit=?, - ~onMagicTap: unit => unit=?, // Gesture Responder props ~onMoveShouldSetResponder: Event.pressEvent => bool=?, ~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?, From dc348d19188e0b993979dbddd76891f68c9ec78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Hilmar=20G=C3=BAstafsson?= Date: Mon, 25 Jan 2021 09:28:30 +0000 Subject: [PATCH 2/2] update ref type --- src/ReactNativeWebView.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReactNativeWebView.re b/src/ReactNativeWebView.re index da42485..2011cd4 100644 --- a/src/ReactNativeWebView.re +++ b/src/ReactNativeWebView.re @@ -160,7 +160,7 @@ external nativeConfig: [@react.component] [@bs.module "react-native-webview"] external make: ( - ~ref: ref=?, + ~ref: ReactNativeWebView_Element.ref=?, // WebView props ~allowingReadAccessToURL: string=?, ~allowFileAccess: bool=?,