From 60845975a73b5374598cff9b930d3c9ccfb79bd0 Mon Sep 17 00:00:00 2001 From: Emerson Laurentino Date: Wed, 1 Nov 2017 20:13:45 -0300 Subject: [PATCH] improve TouchableItem props (#2841) * Replace props style * fix: remove eslint-disable-line no-unused-vars * Update TouchableItem.js * Update TouchableItem.js --- packages/react-navigation/src/views/TouchableItem.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-navigation/src/views/TouchableItem.js b/packages/react-navigation/src/views/TouchableItem.js index 2e38edf2..a6789e70 100644 --- a/packages/react-navigation/src/views/TouchableItem.js +++ b/packages/react-navigation/src/views/TouchableItem.js @@ -49,7 +49,7 @@ export default class TouchableItem extends React.Component { Platform.OS === 'android' && Platform.Version >= ANDROID_VERSION_LOLLIPOP ) { - const { style, ...rest } = this.props; // eslint-disable-line no-unused-vars + const { style, ...rest } = this.props; return ( { this.props.borderless || false )} > - - {React.Children.only(this.props.children)} - + {React.Children.only(this.props.children)} ); }