@@ -190,6 +190,7 @@ const TouchableHighlight = createReactClass({
190
190
getDefaultProps : ( ) => DEFAULT_PROPS ,
191
191
192
192
getInitialState : function ( ) {
193
+ // $FlowFixMe Invalid prop usage
193
194
this . _isMounted = false ;
194
195
if ( this . props . testOnly_pressed ) {
195
196
return {
@@ -211,11 +212,13 @@ const TouchableHighlight = createReactClass({
211
212
} ,
212
213
213
214
componentDidMount : function ( ) {
215
+ // $FlowFixMe Invalid prop usage
214
216
this . _isMounted = true ;
215
217
ensurePositiveDelayProps ( this . props ) ;
216
218
} ,
217
219
218
220
componentWillUnmount : function ( ) {
221
+ // $FlowFixMe Invalid prop usage
219
222
this . _isMounted = false ;
220
223
clearTimeout ( this . _hideTimeout ) ;
221
224
} ,
@@ -235,12 +238,14 @@ const TouchableHighlight = createReactClass({
235
238
*/
236
239
touchableHandleActivePressIn : function ( e : PressEvent ) {
237
240
clearTimeout ( this . _hideTimeout ) ;
241
+ // $FlowFixMe Invalid prop usage
238
242
this . _hideTimeout = null ;
239
243
this . _showUnderlay ( ) ;
240
244
this . props . onPressIn && this . props . onPressIn ( e ) ;
241
245
} ,
242
246
243
247
touchableHandleActivePressOut : function ( e : PressEvent ) {
248
+ // $FlowFixMe Invalid prop usage
244
249
if ( ! this . _hideTimeout ) {
245
250
this . _hideUnderlay ( ) ;
246
251
}
@@ -251,6 +256,7 @@ const TouchableHighlight = createReactClass({
251
256
clearTimeout ( this . _hideTimeout ) ;
252
257
if ( ! Platform . isTVOS ) {
253
258
this . _showUnderlay ( ) ;
259
+ // $FlowFixMe Invalid prop usage
254
260
this . _hideTimeout = setTimeout (
255
261
this . _hideUnderlay ,
256
262
this . props . delayPressOut ,
@@ -284,6 +290,7 @@ const TouchableHighlight = createReactClass({
284
290
} ,
285
291
286
292
_showUnderlay : function ( ) {
293
+ // $FlowFixMe Invalid prop usage
287
294
if ( ! this . _isMounted || ! this . _hasPressHandler ( ) ) {
288
295
return ;
289
296
}
@@ -300,6 +307,7 @@ const TouchableHighlight = createReactClass({
300
307
301
308
_hideUnderlay : function ( ) {
302
309
clearTimeout ( this . _hideTimeout ) ;
310
+ // $FlowFixMe Invalid prop usage
303
311
this . _hideTimeout = null ;
304
312
if ( this . props . testOnly_pressed ) {
305
313
return ;
@@ -323,10 +331,12 @@ const TouchableHighlight = createReactClass({
323
331
} ,
324
332
325
333
render : function ( ) {
334
+ // $FlowFixMe Invalid prop usage
326
335
const child = React . Children . only ( this . props . children ) ;
327
336
return (
328
337
< View
329
338
accessible = { this . props . accessible !== false }
339
+ // $FlowFixMe Invalid prop usage
330
340
accessibilityLabel = { this . props . accessibilityLabel }
331
341
accessibilityComponentType = { this . props . accessibilityComponentType }
332
342
accessibilityTraits = { this . props . accessibilityTraits }
@@ -347,7 +357,9 @@ const TouchableHighlight = createReactClass({
347
357
onResponderMove = { this . touchableHandleResponderMove }
348
358
onResponderRelease = { this . touchableHandleResponderRelease }
349
359
onResponderTerminate = { this . touchableHandleResponderTerminate }
360
+ // $FlowFixMe Invalid prop usage
350
361
nativeID = { this . props . nativeID }
362
+ // $FlowFixMe Invalid prop usage
351
363
testID = { this . props . testID } >
352
364
{ React . cloneElement ( child , {
353
365
style : StyleSheet . compose (
0 commit comments