Skip to content

Commit

Permalink
Split out styles prop
Browse files Browse the repository at this point in the history
  • Loading branch information
empyrical committed Oct 18, 2018
1 parent 70d3553 commit 96a4b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Components/CheckBox/CheckBox.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ class CheckBox extends React.Component<Props> {
};

render() {
const {disabled, value, forwardedRef, ...props} = this.props;
const {disabled, value, style, forwardedRef, ...props} = this.props;
const nativeProps = {
...props,
onStartShouldSetResponder: () => true,
onResponderTerminationRequest: () => false,
enabled: !disabled,
on: value,
style: [styles.rctCheckBox, props.style],
style: [styles.rctCheckBox, style],
};

return (
Expand Down

0 comments on commit 96a4b94

Please sign in to comment.