Skip to content

Commit 4364075

Browse files
emersonlaurentinovonovak
authored andcommitted
improve TouchableItem props (react-navigation#2841)
* Replace props style * fix: remove eslint-disable-line no-unused-vars * Update TouchableItem.js * Update TouchableItem.js
1 parent c5f8eb2 commit 4364075

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/views/TouchableItem.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default class TouchableItem extends React.Component<Props> {
4949
Platform.OS === 'android' &&
5050
Platform.Version >= ANDROID_VERSION_LOLLIPOP
5151
) {
52-
const { style, ...rest } = this.props; // eslint-disable-line no-unused-vars
52+
const { style, ...rest } = this.props;
5353
return (
5454
<TouchableNativeFeedback
5555
{...rest}
@@ -59,9 +59,7 @@ export default class TouchableItem extends React.Component<Props> {
5959
this.props.borderless || false
6060
)}
6161
>
62-
<View style={this.props.style}>
63-
{React.Children.only(this.props.children)}
64-
</View>
62+
<View style={style}>{React.Children.only(this.props.children)}</View>
6563
</TouchableNativeFeedback>
6664
);
6765
}

0 commit comments

Comments
 (0)