mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
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:
parent
0d4cfa00f9
commit
a3d9fadc78
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user