We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f8eb2 commit 4364075Copy full SHA for 4364075
src/views/TouchableItem.js
@@ -49,7 +49,7 @@ export default class TouchableItem extends React.Component<Props> {
49
Platform.OS === 'android' &&
50
Platform.Version >= ANDROID_VERSION_LOLLIPOP
51
) {
52
- const { style, ...rest } = this.props; // eslint-disable-line no-unused-vars
+ const { style, ...rest } = this.props;
53
return (
54
<TouchableNativeFeedback
55
{...rest}
@@ -59,9 +59,7 @@ export default class TouchableItem extends React.Component<Props> {
59
this.props.borderless || false
60
)}
61
>
62
- <View style={this.props.style}>
63
- {React.Children.only(this.props.children)}
64
- </View>
+ <View style={style}>{React.Children.only(this.props.children)}</View>
65
</TouchableNativeFeedback>
66
);
67
}
0 commit comments