diff --git a/packages/react-native/Libraries/Components/Switch/Switch.js b/packages/react-native/Libraries/Components/Switch/Switch.js index 5c296fbcd02b..5e7cf328a24d 100644 --- a/packages/react-native/Libraries/Components/Switch/Switch.js +++ b/packages/react-native/Libraries/Components/Switch/Switch.js @@ -238,59 +238,51 @@ const Switch: component( if (Platform.OS === 'android') { const {onTintColor, tintColor, ...androidProps} = restProps; - const platformProps = { - accessibilityState: _accessibilityState, - enabled: _disabled !== true, - on: value === true, - style, - thumbTintColor: thumbColor, - trackColorForFalse: trackColorForFalse, - trackColorForTrue: trackColorForTrue, - trackTintColor: value === true ? trackColorForTrue : trackColorForFalse, - }; - return ( ); } else { - const platformProps = { - accessibilityState: _accessibilityState, - disabled, - onTintColor: trackColorForTrue, - style: StyleSheet.compose( - {alignSelf: 'flex-start' as const}, - StyleSheet.compose( - style, - ios_backgroundColor == null - ? null - : { - backgroundColor: ios_backgroundColor, - borderRadius: 16, - }, - ), - ), - thumbTintColor: thumbColor, - tintColor: trackColorForFalse, - value: value === true, - }; - return ( ); }