feat:iOS animation reset duration when duration is 0

This commit is contained in:
刘涛 2020-06-15 20:19:40 +08:00 committed by osborn
parent 662909438b
commit cb3dfcbec8

View File

@ -551,6 +551,9 @@ - (void)doAnimation:(id)params withPromise:(DoricPromise *)promise {
}
animation.removedOnCompletion = NO;
animation.fillMode = kCAFillModeForwards;
if(animation.duration==0){
animation.duration=FLT_MIN;
}
[self.view.layer addAnimation:animation forKey:nil];
}