From a3d9fadc78c601a6886db0fda824455cc72d1ea7 Mon Sep 17 00:00:00 2001 From: Christopher Dro Date: Wed, 6 Jan 2016 07:41:13 -0800 Subject: [PATCH] Remove fixed size for Android. Fixes #3785 Summary: Fixed #3785 Closes https://github.com/facebook/react-native/pull/4298 Reviewed By: svcscm Differential Revision: D2807289 Pulled By: mkonicek fb-gh-sync-id: 6f161e4f8b04597726183fdcf8bc22c682557958 --- Libraries/Components/Switch/Switch.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index 31ec91ef5..9816db385 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -92,7 +92,7 @@ var Switch = React.createClass({ if (Platform.OS === 'android') { props.enabled = !this.props.disabled; props.on = this.props.value; - props.style = [styles.rctSwitchAndroid, this.props.style]; + props.style = this.props.style; } else if (Platform.OS === 'ios') { props.style = [styles.rctSwitchIOS, this.props.style]; } @@ -110,11 +110,7 @@ var styles = StyleSheet.create({ rctSwitchIOS: { height: 31, width: 51, - }, - rctSwitchAndroid: { - height: 27, - width: 40, - }, + } }); if (Platform.OS === 'android') {