@@ -203,15 +203,9 @@ const TouchableHighlight = ((createReactClass({
203
203
getDefaultProps : ( ) => DEFAULT_PROPS ,
204
204
205
205
getInitialState : function ( ) {
206
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
207
- * error found when Flow v0.89 was deployed. To see the error, delete this
208
- * comment and run Flow. */
209
206
this . _isMounted = false ;
210
207
if ( this . props . testOnly_pressed ) {
211
208
return {
212
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
213
- * error found when Flow v0.89 was deployed. To see the error, delete
214
- * this comment and run Flow. */
215
209
...this . touchableGetInitialState ( ) ,
216
210
extraChildStyle : {
217
211
opacity : this . props . activeOpacity ,
@@ -222,9 +216,6 @@ const TouchableHighlight = ((createReactClass({
222
216
} ;
223
217
} else {
224
218
return {
225
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
226
- * error found when Flow v0.89 was deployed. To see the error, delete
227
- * this comment and run Flow. */
228
219
...this . touchableGetInitialState ( ) ,
229
220
extraChildStyle : null ,
230
221
extraUnderlayStyle : null ,
@@ -233,21 +224,12 @@ const TouchableHighlight = ((createReactClass({
233
224
} ,
234
225
235
226
componentDidMount : function ( ) {
236
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
237
- * error found when Flow v0.89 was deployed. To see the error, delete this
238
- * comment and run Flow. */
239
227
this . _isMounted = true ;
240
228
ensurePositiveDelayProps ( this . props ) ;
241
229
} ,
242
230
243
231
componentWillUnmount : function ( ) {
244
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
245
- * error found when Flow v0.89 was deployed. To see the error, delete this
246
- * comment and run Flow. */
247
232
this . _isMounted = false ;
248
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
249
- * error found when Flow v0.89 was deployed. To see the error, delete this
250
- * comment and run Flow. */
251
233
clearTimeout ( this . _hideTimeout ) ;
252
234
} ,
253
235
@@ -265,22 +247,13 @@ const TouchableHighlight = ((createReactClass({
265
247
* defined on your component.
266
248
*/
267
249
touchableHandleActivePressIn : function ( e : PressEvent ) {
268
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
269
- * error found when Flow v0.89 was deployed. To see the error, delete this
270
- * comment and run Flow. */
271
250
clearTimeout ( this . _hideTimeout ) ;
272
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
273
- * error found when Flow v0.89 was deployed. To see the error, delete this
274
- * comment and run Flow. */
275
251
this . _hideTimeout = null ;
276
252
this . _showUnderlay ( ) ;
277
253
this . props . onPressIn && this . props . onPressIn ( e ) ;
278
254
} ,
279
255
280
256
touchableHandleActivePressOut : function ( e : PressEvent ) {
281
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
282
- * error found when Flow v0.89 was deployed. To see the error, delete this
283
- * comment and run Flow. */
284
257
if ( ! this . _hideTimeout ) {
285
258
this . _hideUnderlay ( ) ;
286
259
}
@@ -302,15 +275,9 @@ const TouchableHighlight = ((createReactClass({
302
275
} ,
303
276
304
277
touchableHandlePress : function ( e : PressEvent ) {
305
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
306
- * error found when Flow v0.89 was deployed. To see the error, delete this
307
- * comment and run Flow. */
308
278
clearTimeout ( this . _hideTimeout ) ;
309
279
if ( ! Platform . isTV ) {
310
280
this . _showUnderlay ( ) ;
311
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
312
- * error found when Flow v0.89 was deployed. To see the error, delete
313
- * this comment and run Flow. */
314
281
this . _hideTimeout = setTimeout (
315
282
this . _hideUnderlay ,
316
283
this . props . delayPressOut ,
@@ -344,9 +311,6 @@ const TouchableHighlight = ((createReactClass({
344
311
} ,
345
312
346
313
_showUnderlay : function ( ) {
347
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
348
- * error found when Flow v0.89 was deployed. To see the error, delete this
349
- * comment and run Flow. */
350
314
if ( ! this . _isMounted || ! this . _hasPressHandler ( ) ) {
351
315
return ;
352
316
}
@@ -362,13 +326,7 @@ const TouchableHighlight = ((createReactClass({
362
326
} ,
363
327
364
328
_hideUnderlay : function ( ) {
365
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
366
- * error found when Flow v0.89 was deployed. To see the error, delete this
367
- * comment and run Flow. */
368
329
clearTimeout ( this . _hideTimeout ) ;
369
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
370
- * error found when Flow v0.89 was deployed. To see the error, delete this
371
- * comment and run Flow. */
372
330
this . _hideTimeout = null ;
373
331
if ( this . props . testOnly_pressed ) {
374
332
return ;
@@ -409,31 +367,13 @@ const TouchableHighlight = ((createReactClass({
409
367
isTVSelectable = { true }
410
368
tvParallaxProperties = { this . props . tvParallaxProperties }
411
369
hasTVPreferredFocus = { this . props . hasTVPreferredFocus }
412
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
413
- * error found when Flow v0.89 was deployed. To see the error, delete
414
- * this comment and run Flow. */
415
370
onStartShouldSetResponder = { this . touchableHandleStartShouldSetResponder }
416
371
onResponderTerminationRequest = {
417
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses
418
- * an error found when Flow v0.89 was deployed. To see the error,
419
- * delete this comment and run Flow. */
420
372
this . touchableHandleResponderTerminationRequest
421
373
}
422
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
423
- * error found when Flow v0.89 was deployed. To see the error, delete
424
- * this comment and run Flow. */
425
374
onResponderGrant = { this . touchableHandleResponderGrant }
426
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
427
- * error found when Flow v0.89 was deployed. To see the error, delete
428
- * this comment and run Flow. */
429
375
onResponderMove = { this . touchableHandleResponderMove }
430
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
431
- * error found when Flow v0.89 was deployed. To see the error, delete
432
- * this comment and run Flow. */
433
376
onResponderRelease = { this . touchableHandleResponderRelease }
434
- /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
435
- * error found when Flow v0.89 was deployed. To see the error, delete
436
- * this comment and run Flow. */
437
377
onResponderTerminate = { this . touchableHandleResponderTerminate }
438
378
nativeID = { this . props . nativeID }
439
379
testID = { this . props . testID } >
0 commit comments