Skip to content

Commit

Permalink
Remove fixed size for Android. Fixes #3785
Browse files Browse the repository at this point in the history
Summary:
Fixed #3785
Closes #4298

Reviewed By: svcscm

Differential Revision: D2807289

Pulled By: mkonicek

fb-gh-sync-id: 6f161e4f8b04597726183fdcf8bc22c682557958
  • Loading branch information
christopherdro authored and facebook-github-bot-8 committed Jan 6, 2016
1 parent 0d4cfa0 commit a3d9fad
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Libraries/Components/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand All @@ -110,11 +110,7 @@ var styles = StyleSheet.create({
rctSwitchIOS: {
height: 31,
width: 51,
},
rctSwitchAndroid: {
height: 27,
width: 40,
},
}
});

if (Platform.OS === 'android') {
Expand Down

0 comments on commit a3d9fad

Please sign in to comment.