From 18ff57c304aae0bf2732d653c3135ebec59274fa Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Thu, 15 Dec 2022 10:12:03 -0800 Subject: [PATCH] Fix SharedElementAnimator missing some animations Previously if an element was not found, then it would break out of the loop looking for further (possibly valid) shared element transitions. Now it'll continue the loop, which is the expected behavior. --- lib/ios/SharedElementAnimator.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ios/SharedElementAnimator.m b/lib/ios/SharedElementAnimator.m index beceff0fe66..8663c8faf74 100644 --- a/lib/ios/SharedElementAnimator.m +++ b/lib/ios/SharedElementAnimator.m @@ -39,7 +39,7 @@ - (instancetype)initWithTransitions: [RNNElementFinder findElementForId:transitionOptions.toId inView:_toVC.presentedComponentViewController.reactView]; if (fromView == nil || toView == nil) { - break; + continue; } SharedElementTransition *sharedElementAnimator =