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
This commit is contained in:
Christopher Dro 2016-01-06 07:41:13 -08:00 committed by facebook-github-bot-8
parent 0d4cfa00f9
commit a3d9fadc78

View File

@ -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') {