@@ -376,8 +376,7 @@ describe('Animated', () => {
376376 const anim2 = { start : jest . fn ( ) } ;
377377 const cb = jest . fn ( ) ;
378378
379- // $FlowFixMe[prop-missing]
380- const seq = Animated . sequence ( [ anim1 , anim2 ] ) ;
379+ const seq = Animated . sequence ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
381380
382381 expect ( anim1 . start ) . not . toBeCalled ( ) ;
383382 expect ( anim2 . start ) . not . toBeCalled ( ) ;
@@ -402,8 +401,7 @@ describe('Animated', () => {
402401 const anim2 = { start : jest . fn ( ) } ;
403402 const cb = jest . fn ( ) ;
404403
405- // $FlowFixMe[prop-missing]
406- Animated . sequence ( [ anim1 , anim2 ] ) . start ( cb ) ;
404+ Animated . sequence ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) . start ( cb ) ;
407405
408406 anim1 . start . mock . calls [ 0 ] [ 0 ] ( { finished : false } ) ;
409407
@@ -417,8 +415,7 @@ describe('Animated', () => {
417415 const anim2 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
418416 const cb = jest . fn ( ) ;
419417
420- // $FlowFixMe[prop-missing]
421- const seq = Animated . sequence ( [ anim1 , anim2 ] ) ;
418+ const seq = Animated . sequence ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
422419 seq . start ( cb ) ;
423420 seq . stop ( ) ;
424421
@@ -436,8 +433,7 @@ describe('Animated', () => {
436433 const anim2 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
437434 const cb = jest . fn ( ) ;
438435
439- // $FlowFixMe[prop-missing]
440- const seq = Animated . sequence ( [ anim1 , anim2 ] ) ;
436+ const seq = Animated . sequence ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
441437
442438 seq . start ( cb ) ;
443439
@@ -460,8 +456,7 @@ describe('Animated', () => {
460456 const anim2 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
461457 const cb = jest . fn ( ) ;
462458
463- // $FlowFixMe[prop-missing]
464- const seq = Animated . sequence ( [ anim1 , anim2 ] ) ;
459+ const seq = Animated . sequence ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
465460
466461 seq . start ( cb ) ;
467462 anim1 . start . mock . calls [ 0 ] [ 0 ] ( { finished : true } ) ;
@@ -487,8 +482,7 @@ describe('Animated', () => {
487482 } ;
488483 const cb = jest . fn ( ) ;
489484
490- // $FlowFixMe[prop-missing]
491- const loop = Animated . loop ( animation ) ;
485+ const loop = Animated . loop ( animation as $FlowFixMe ) ;
492486
493487 expect ( animation . start ) . not . toBeCalled ( ) ;
494488
@@ -519,8 +513,7 @@ describe('Animated', () => {
519513 } ;
520514 const cb = jest . fn ( ) ;
521515
522- // $FlowFixMe[prop-missing]
523- const loop = Animated . loop ( animation , { iterations : - 1 } ) ;
516+ const loop = Animated . loop ( animation as $FlowFixMe , { iterations : - 1 } ) ;
524517
525518 expect ( animation . start ) . not . toBeCalled ( ) ;
526519
@@ -551,8 +544,10 @@ describe('Animated', () => {
551544 } ;
552545 const cb = jest . fn ( ) ;
553546
554- // $FlowFixMe[prop-missing]
555- const loop = Animated . loop ( animation , { anotherKey : 'value' } ) ;
547+ const loop = Animated . loop (
548+ animation as $FlowFixMe ,
549+ { anotherKey : 'value' } as $FlowFixMe ,
550+ ) ;
556551
557552 expect ( animation . start ) . not . toBeCalled ( ) ;
558553
@@ -583,8 +578,7 @@ describe('Animated', () => {
583578 } ;
584579 const cb = jest . fn ( ) ;
585580
586- // $FlowFixMe[prop-missing]
587- const loop = Animated . loop ( animation , { iterations : 3 } ) ;
581+ const loop = Animated . loop ( animation as $FlowFixMe , { iterations : 3 } ) ;
588582
589583 expect ( animation . start ) . not . toBeCalled ( ) ;
590584
@@ -615,8 +609,7 @@ describe('Animated', () => {
615609 } ;
616610 const cb = jest . fn ( ) ;
617611
618- // $FlowFixMe[prop-missing]
619- const loop = Animated . loop ( animation , { iterations : 1 } ) ;
612+ const loop = Animated . loop ( animation as $FlowFixMe , { iterations : 1 } ) ;
620613
621614 expect ( animation . start ) . not . toBeCalled ( ) ;
622615
@@ -637,8 +630,7 @@ describe('Animated', () => {
637630 } ;
638631 const cb = jest . fn ( ) ;
639632
640- // $FlowFixMe[prop-missing]
641- const loop = Animated . loop ( animation , { iterations : 0 } ) ;
633+ const loop = Animated . loop ( animation as $FlowFixMe , { iterations : 0 } ) ;
642634
643635 expect ( animation . start ) . not . toBeCalled ( ) ;
644636
@@ -656,8 +648,7 @@ describe('Animated', () => {
656648 } ;
657649 const cb = jest . fn ( ) ;
658650
659- // $FlowFixMe[prop-missing]
660- Animated . loop ( animation ) . start ( cb ) ;
651+ Animated . loop ( animation as $FlowFixMe ) . start ( cb ) ;
661652 expect ( animation . start ) . toBeCalled ( ) ;
662653 expect ( animation . reset ) . toHaveBeenCalledTimes ( 1 ) ;
663654 expect ( cb ) . not . toBeCalled ( ) ;
@@ -680,8 +671,7 @@ describe('Animated', () => {
680671 } ;
681672 const cb = jest . fn ( ) ;
682673
683- // $FlowFixMe[prop-missing]
684- const loop = Animated . loop ( animation ) ;
674+ const loop = Animated . loop ( animation as $FlowFixMe ) ;
685675 loop . start ( cb ) ;
686676 loop . stop ( ) ;
687677
@@ -703,8 +693,10 @@ describe('Animated', () => {
703693 } ;
704694 const cb = jest . fn ( ) ;
705695
706- // $FlowFixMe[prop-missing]
707- const loop = Animated . loop ( animation , { resetBeforeIteration : false } ) ;
696+ const loop = Animated . loop (
697+ animation as $FlowFixMe ,
698+ { resetBeforeIteration : false } as $FlowFixMe ,
699+ ) ;
708700
709701 expect ( animation . start ) . not . toBeCalled ( ) ;
710702
@@ -730,8 +722,7 @@ describe('Animated', () => {
730722 it ( 'restarts sequence normally in a loop if resetBeforeIteration is false' , ( ) => {
731723 const anim1 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
732724 const anim2 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
733- // $FlowFixMe[prop-missing]
734- const seq = Animated . sequence ( [ anim1 , anim2 ] ) ;
725+ const seq = Animated . sequence ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
735726
736727 // $FlowFixMe[prop-missing]
737728 const loop = Animated . loop ( seq , { resetBeforeIteration : false } ) ;
@@ -761,9 +752,7 @@ describe('Animated', () => {
761752 it ( 'works with an empty element in array' , ( ) => {
762753 const anim1 = { start : jest . fn ( ) } ;
763754 const cb = jest . fn ( ) ;
764- // $FlowFixMe[incompatible-call]
765- // $FlowFixMe[prop-missing]
766- Animated . parallel ( [ null , anim1 ] ) . start ( cb ) ;
755+ Animated . parallel ( [ null as $FlowFixMe , anim1 as $FlowFixMe ] ) . start ( cb ) ;
767756
768757 expect ( anim1 . start ) . toBeCalled ( ) ;
769758 anim1 . start . mock . calls [ 0 ] [ 0 ] ( { finished : true } ) ;
@@ -776,9 +765,7 @@ describe('Animated', () => {
776765 const anim2 = { start : jest . fn ( ) } ;
777766 const cb = jest . fn ( ) ;
778767
779- // $FlowFixMe[prop-missing]
780- // $FlowFixMe[prop-missing]
781- const par = Animated . parallel ( [ anim1 , anim2 ] ) ;
768+ const par = Animated . parallel ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
782769
783770 expect ( anim1 . start ) . not . toBeCalled ( ) ;
784771 expect ( anim2 . start ) . not . toBeCalled ( ) ;
@@ -801,8 +788,7 @@ describe('Animated', () => {
801788 const anim2 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
802789 const cb = jest . fn ( ) ;
803790
804- // $FlowFixMe[prop-missing]
805- const seq = Animated . parallel ( [ anim1 , anim2 ] ) ;
791+ const seq = Animated . parallel ( [ anim1 as $FlowFixMe , anim2 as $FlowFixMe ] ) ;
806792 seq . start ( cb ) ;
807793 seq . stop ( ) ;
808794
@@ -823,8 +809,11 @@ describe('Animated', () => {
823809 const anim3 = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
824810 const cb = jest . fn ( ) ;
825811
826- // $FlowFixMe[prop-missing]
827- const seq = Animated . parallel ( [ anim1 , anim2 , anim3 ] ) ;
812+ const seq = Animated . parallel ( [
813+ anim1 as $FlowFixMe ,
814+ anim2 as $FlowFixMe ,
815+ anim3 as $FlowFixMe ,
816+ ] ) ;
828817 seq . start ( cb ) ;
829818
830819 anim1 . start . mock . calls [ 0 ] [ 0 ] ( { finished : false } ) ;
@@ -851,8 +840,7 @@ describe('Animated', () => {
851840 it ( 'should call anim after delay in sequence' , ( ) => {
852841 const anim = { start : jest . fn ( ) , stop : jest . fn ( ) } ;
853842 const cb = jest . fn ( ) ;
854- // $FlowFixMe[prop-missing]
855- Animated . sequence ( [ Animated . delay ( 1000 ) , anim ] ) . start ( cb ) ;
843+ Animated . sequence ( [ Animated . delay ( 1000 ) , anim as $FlowFixMe ] ) . start ( cb ) ;
856844 jest . runAllTimers ( ) ;
857845 expect ( anim . start . mock . calls . length ) . toBe ( 1 ) ;
858846 expect ( cb ) . not . toBeCalled ( ) ;
0 commit comments