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