We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ce23e commit d7c6be4Copy full SHA for d7c6be4
1 file changed
packages/pluggableWidgets/switch-native/src/Switch.tsx
@@ -1,6 +1,6 @@
1
import { flattenStyles } from "@mendix/piw-native-utils-internal";
2
import React, { ReactElement, useCallback } from "react";
3
-import { View, Text, Switch as SwitchComponent, Platform } from "react-native";
+import { View, Text, Switch as SwitchComponent } from "react-native";
4
import { executeAction } from "@mendix/piw-utils-internal";
5
import { extractStyles } from "@mendix/pluggable-widgets-tools";
6
@@ -51,7 +51,6 @@ export function Switch(props: Props): ReactElement {
51
false: inputProps.trackColorOff
52
}}
53
thumbColor={booleanAttribute.value ? inputProps.thumbColorOn : inputProps.thumbColorOff}
54
- {...(Platform.OS === "ios" ? { ios_backgroundColor: inputProps.trackColorOff } : {})}
55
/>
56
);
57
0 commit comments