From 3902b879b496b6397c311f61bc21f23ab4b8fdd2 Mon Sep 17 00:00:00 2001 From: TL Date: Sun, 26 Apr 2020 23:40:02 +0700 Subject: [PATCH 1/2] Add children prop to ClipPath - FYI https://github.com/react-native-community/react-native-svg/blob/develop/src/elements/ClipPath.tsx --- src/ReactNativeSvg.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReactNativeSvg.re b/src/ReactNativeSvg.re index dee902c..ca00c2f 100644 --- a/src/ReactNativeSvg.re +++ b/src/ReactNativeSvg.re @@ -888,7 +888,7 @@ module Image = { module ClipPath = { [@react.component] [@bs.module "react-native-svg"] - external make: (~id: string) => React.element = "ClipPath"; + external make: (~children: React.element=?, ~id: string) => React.element = "ClipPath"; }; module LinearGradient = { From 53cf41edbd32fe0a30c98e18a942eb9a7129ebf1 Mon Sep 17 00:00:00 2001 From: TL Date: Mon, 27 Apr 2020 00:24:49 +0700 Subject: [PATCH 2/2] Fix typo for opacity converter --- src/ReactNativeSvg.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReactNativeSvg.re b/src/ReactNativeSvg.re index ca00c2f..42d633f 100644 --- a/src/ReactNativeSvg.re +++ b/src/ReactNativeSvg.re @@ -3,7 +3,7 @@ open ReactNative; type size = Style.size; type sizes = array(size); type opacity = string; -external opacity: float => size = "%identity"; +external opacity: float => opacity = "%identity"; // https://github.com/react-native-community/react-native-svg#use-with-xml-strings module SvgXml = {