Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export function BaseSwitch({
};
}
}
// Temporary fix for iOS 26. Remove when we upgrade to RN 0.81.
// https://github.com/facebook/react-native/pull/53389
const iOSBackgroundColor =
Platform.OS === "ios" && Platform.Version?.startsWith("26.")
? undefined
: tokens["color-interactive--background"];

return (
<Switch
Expand All @@ -98,7 +104,7 @@ export function BaseSwitch({
disabled={disabled}
thumbColor={getThumbColor()}
trackColor={getTrackColors()}
ios_backgroundColor={tokens["color-interactive--background"]}
ios_backgroundColor={iOSBackgroundColor}
accessibilityLabel={accessibilityLabel}
accessibilityRole={"switch"}
accessibilityState={{
Expand Down