Skip to content

Commit 1998851

Browse files
committed
Fix opacity & strokeOpacity props
1 parent 8205b23 commit 1998851

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/ReactNativeSvg.re

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module Svg = {
3838
(
3939
~color: Color.t=?,
4040
~viewBox: string=?,
41-
~opacity: float=?,
41+
~opacity: opacity=?,
4242
~onLayout: unit => unit=?,
4343
~preserveAspectRatio: string=?,
4444
~style: Style.t=?,
@@ -52,7 +52,7 @@ module Svg = {
5252
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
5353
~stroke: Color.t=?,
5454
~strokeWidth: size=?,
55-
~strokeOpacity: size=?,
55+
~strokeOpacity: opacity=?,
5656
~strokeDasharray: array(size)=?,
5757
~strokeDashoffset: size=?,
5858
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -98,7 +98,7 @@ module Rect = {
9898
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
9999
~stroke: Color.t=?,
100100
~strokeWidth: size=?,
101-
~strokeOpacity: size=?,
101+
~strokeOpacity: opacity=?,
102102
~strokeDasharray: array(size)=?,
103103
~strokeDashoffset: size=?,
104104
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -143,7 +143,7 @@ module Circle = {
143143
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
144144
~stroke: Color.t=?,
145145
~strokeWidth: size=?,
146-
~strokeOpacity: size=?,
146+
~strokeOpacity: opacity=?,
147147
~strokeDasharray: array(size)=?,
148148
~strokeDashoffset: size=?,
149149
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -189,7 +189,7 @@ module Ellipse = {
189189
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
190190
~stroke: Color.t=?,
191191
~strokeWidth: size=?,
192-
~strokeOpacity: size=?,
192+
~strokeOpacity: opacity=?,
193193
~strokeDasharray: array(size)=?,
194194
~strokeDashoffset: size=?,
195195
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -235,7 +235,7 @@ module Line = {
235235
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
236236
~stroke: Color.t=?,
237237
~strokeWidth: size=?,
238-
~strokeOpacity: size=?,
238+
~strokeOpacity: opacity=?,
239239
~strokeDasharray: array(size)=?,
240240
~strokeDashoffset: size=?,
241241
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -278,7 +278,7 @@ module Polygon = {
278278
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
279279
~stroke: Color.t=?,
280280
~strokeWidth: size=?,
281-
~strokeOpacity: size=?,
281+
~strokeOpacity: opacity=?,
282282
~strokeDasharray: array(size)=?,
283283
~strokeDashoffset: size=?,
284284
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -321,7 +321,7 @@ module Polyline = {
321321
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
322322
~stroke: Color.t=?,
323323
~strokeWidth: size=?,
324-
~strokeOpacity: size=?,
324+
~strokeOpacity: opacity=?,
325325
~strokeDasharray: array(size)=?,
326326
~strokeDashoffset: size=?,
327327
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -364,7 +364,7 @@ module Path = {
364364
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
365365
~stroke: Color.t=?,
366366
~strokeWidth: size=?,
367-
~strokeOpacity: size=?,
367+
~strokeOpacity: opacity=?,
368368
~strokeDasharray: array(size)=?,
369369
~strokeDashoffset: size=?,
370370
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -486,7 +486,7 @@ module Text = {
486486
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
487487
~stroke: Color.t=?,
488488
~strokeWidth: size=?,
489-
~strokeOpacity: size=?,
489+
~strokeOpacity: opacity=?,
490490
~strokeDasharray: array(size)=?,
491491
~strokeDashoffset: size=?,
492492
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -609,7 +609,7 @@ module TextPath = {
609609
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
610610
~stroke: Color.t=?,
611611
~strokeWidth: size=?,
612-
~strokeOpacity: size=?,
612+
~strokeOpacity: opacity=?,
613613
~strokeDasharray: array(size)=?,
614614
~strokeDashoffset: size=?,
615615
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -704,7 +704,7 @@ module Tspan = {
704704
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
705705
~stroke: Color.t=?,
706706
~strokeWidth: size=?,
707-
~strokeOpacity: size=?,
707+
~strokeOpacity: opacity=?,
708708
~strokeDasharray: array(size)=?,
709709
~strokeDashoffset: size=?,
710710
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -750,7 +750,7 @@ module Use = {
750750
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
751751
~stroke: Color.t=?,
752752
~strokeWidth: size=?,
753-
~strokeOpacity: size=?,
753+
~strokeOpacity: opacity=?,
754754
~strokeDasharray: array(size)=?,
755755
~strokeDashoffset: size=?,
756756
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -792,7 +792,7 @@ module G = {
792792
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
793793
~stroke: Color.t=?,
794794
~strokeWidth: size=?,
795-
~strokeOpacity: size=?,
795+
~strokeOpacity: opacity=?,
796796
~strokeDasharray: array(size)=?,
797797
~strokeDashoffset: size=?,
798798
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -857,7 +857,7 @@ module Image = {
857857
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
858858
~stroke: Color.t=?,
859859
~strokeWidth: size=?,
860-
~strokeOpacity: size=?,
860+
~strokeOpacity: opacity=?,
861861
~strokeDasharray: array(size)=?,
862862
~strokeDashoffset: size=?,
863863
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,
@@ -950,7 +950,7 @@ module Mask = {
950950
~fillRule: [@bs.string] [ | `evenodd | `nonzero]=?,
951951
~stroke: Color.t=?,
952952
~strokeWidth: size=?,
953-
~strokeOpacity: size=?,
953+
~strokeOpacity: opacity=?,
954954
~strokeDasharray: array(size)=?,
955955
~strokeDashoffset: size=?,
956956
~strokeLinecap: [@bs.string] [ | `butt | `square | `round]=?,

0 commit comments

Comments
 (0)