Skip to content

Commit 795de11

Browse files
sgnyMoOx
authored andcommitted
Zero cost Switch: fix trackColor prop (#366)
1 parent 5343b0a commit 795de11

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎bs-react-native-next/src/components/Switch.re‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
type trackColor;
2+
[@bs.obj] external trackColor: (
3+
~_true: Style.color=?,
4+
~_false: Style.color=?,
5+
unit
6+
) => trackColor = "";
7+
18
[@react.component] [@bs.module "react-native"]
29
external make:
310
(
411
~disabled: bool=?,
5-
~trackColor: Style.color=?,
12+
~trackColor: trackColor=?,
613
~ios_backgroundColor: Style.color=?,
714
~onValueChange: bool => unit=?,
815
~thumbColor: Style.color=?,

0 commit comments

Comments
 (0)