mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
pick up some easy-to-fix lint warnings
Reviewed By: svcscm Differential Revision: D2938097 fb-gh-sync-id: e3373bd44267251d8351d5203be1c88676aa8685 shipit-source-id: e3373bd44267251d8351d5203be1c88676aa8685
This commit is contained in:
committed by
facebook-github-bot-8
parent
d31b47c018
commit
4237a27ec9
@@ -213,9 +213,9 @@ var TouchableHighlight = React.createClass({
|
||||
|
||||
_hasPressHandler: function() {
|
||||
return !!(
|
||||
this.props.onPress ||
|
||||
this.props.onPressIn ||
|
||||
this.props.onPressOut ||
|
||||
this.props.onPress ||
|
||||
this.props.onPressIn ||
|
||||
this.props.onPressOut ||
|
||||
this.props.onLongPress
|
||||
);
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
|
||||
* Do not use unless you have a very good reason. All the elements that
|
||||
* respond to press should have a visual feedback when touched. This is
|
||||
* one of the primary reason a "web" app doesn't feel "native".
|
||||
*
|
||||
*
|
||||
* > **NOTE**: TouchableWithoutFeedback supports only one child
|
||||
* >
|
||||
* > If you wish to have several child components, wrap them in a View.
|
||||
|
||||
Reference in New Issue
Block a user