Skip to content

Commit d7c6be4

Browse files
author
Srirang Kalantri
committed
fix: improve the inconsistent switch look in ios
1 parent e3ce23e commit d7c6be4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • packages/pluggableWidgets/switch-native/src

packages/pluggableWidgets/switch-native/src/Switch.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { flattenStyles } from "@mendix/piw-native-utils-internal";
22
import React, { ReactElement, useCallback } from "react";
3-
import { View, Text, Switch as SwitchComponent, Platform } from "react-native";
3+
import { View, Text, Switch as SwitchComponent } from "react-native";
44
import { executeAction } from "@mendix/piw-utils-internal";
55
import { extractStyles } from "@mendix/pluggable-widgets-tools";
66

@@ -51,7 +51,6 @@ export function Switch(props: Props): ReactElement {
5151
false: inputProps.trackColorOff
5252
}}
5353
thumbColor={booleanAttribute.value ? inputProps.thumbColorOn : inputProps.thumbColorOff}
54-
{...(Platform.OS === "ios" ? { ios_backgroundColor: inputProps.trackColorOff } : {})}
5554
/>
5655
);
5756

0 commit comments

Comments
 (0)