Skip to content

Commit 03880aa

Browse files
authored
Add ClipPath missing children prop + Fix opacity external (#2)
* Add children prop to ClipPath - FYI https://github.com/react-native-community/react-native-svg/blob/develop/src/elements/ClipPath.tsx * Fix typo for opacity converter
1 parent 38872e1 commit 03880aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ReactNativeSvg.re

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ open ReactNative;
33
type size = Style.size;
44
type sizes = array(size);
55
type opacity = string;
6-
external opacity: float => size = "%identity";
6+
external opacity: float => opacity = "%identity";
77

88
// https://github.com/react-native-community/react-native-svg#use-with-xml-strings
99
module SvgXml = {
@@ -888,7 +888,7 @@ module Image = {
888888

889889
module ClipPath = {
890890
[@react.component] [@bs.module "react-native-svg"]
891-
external make: (~id: string) => React.element = "ClipPath";
891+
external make: (~children: React.element=?, ~id: string) => React.element = "ClipPath";
892892
};
893893

894894
module LinearGradient = {

0 commit comments

Comments
 (0)