mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
Remove unused suppressions
Reviewed By: yungsters Differential Revision: D7983271 fbshipit-source-id: ee64e2dacbc8a1b75915b825f7bf0621a121422d
This commit is contained in:
parent
0b79d1faa2
commit
6b3aad31f6
@ -190,7 +190,6 @@ const TouchableHighlight = createReactClass({
|
||||
getDefaultProps: () => DEFAULT_PROPS,
|
||||
|
||||
getInitialState: function() {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
this._isMounted = false;
|
||||
if (this.props.testOnly_pressed) {
|
||||
return {
|
||||
@ -212,13 +211,11 @@ const TouchableHighlight = createReactClass({
|
||||
},
|
||||
|
||||
componentDidMount: function() {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
this._isMounted = true;
|
||||
ensurePositiveDelayProps(this.props);
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
this._isMounted = false;
|
||||
clearTimeout(this._hideTimeout);
|
||||
},
|
||||
@ -238,14 +235,12 @@ const TouchableHighlight = createReactClass({
|
||||
*/
|
||||
touchableHandleActivePressIn: function(e: PressEvent) {
|
||||
clearTimeout(this._hideTimeout);
|
||||
// $FlowFixMe Invalid prop usage
|
||||
this._hideTimeout = null;
|
||||
this._showUnderlay();
|
||||
this.props.onPressIn && this.props.onPressIn(e);
|
||||
},
|
||||
|
||||
touchableHandleActivePressOut: function(e: PressEvent) {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
if (!this._hideTimeout) {
|
||||
this._hideUnderlay();
|
||||
}
|
||||
@ -256,7 +251,6 @@ const TouchableHighlight = createReactClass({
|
||||
clearTimeout(this._hideTimeout);
|
||||
if (!Platform.isTVOS) {
|
||||
this._showUnderlay();
|
||||
// $FlowFixMe Invalid prop usage
|
||||
this._hideTimeout = setTimeout(
|
||||
this._hideUnderlay,
|
||||
this.props.delayPressOut,
|
||||
@ -290,7 +284,6 @@ const TouchableHighlight = createReactClass({
|
||||
},
|
||||
|
||||
_showUnderlay: function() {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
if (!this._isMounted || !this._hasPressHandler()) {
|
||||
return;
|
||||
}
|
||||
@ -307,7 +300,6 @@ const TouchableHighlight = createReactClass({
|
||||
|
||||
_hideUnderlay: function() {
|
||||
clearTimeout(this._hideTimeout);
|
||||
// $FlowFixMe Invalid prop usage
|
||||
this._hideTimeout = null;
|
||||
if (this.props.testOnly_pressed) {
|
||||
return;
|
||||
@ -331,12 +323,10 @@ const TouchableHighlight = createReactClass({
|
||||
},
|
||||
|
||||
render: function() {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
const child = React.Children.only(this.props.children);
|
||||
return (
|
||||
<View
|
||||
accessible={this.props.accessible !== false}
|
||||
// $FlowFixMe Invalid prop usage
|
||||
accessibilityLabel={this.props.accessibilityLabel}
|
||||
accessibilityComponentType={this.props.accessibilityComponentType}
|
||||
accessibilityTraits={this.props.accessibilityTraits}
|
||||
@ -357,9 +347,7 @@ const TouchableHighlight = createReactClass({
|
||||
onResponderMove={this.touchableHandleResponderMove}
|
||||
onResponderRelease={this.touchableHandleResponderRelease}
|
||||
onResponderTerminate={this.touchableHandleResponderTerminate}
|
||||
// $FlowFixMe Invalid prop usage
|
||||
nativeID={this.props.nativeID}
|
||||
// $FlowFixMe Invalid prop usage
|
||||
testID={this.props.testID}>
|
||||
{React.cloneElement(child, {
|
||||
style: StyleSheet.compose(
|
||||
|
Loading…
x
Reference in New Issue
Block a user