Avoid start/finishOperationBatch when using singleOp Animated experiment

Summary:
Splitting these changes of from D36482630, which is a minor improvement to the singleOp experiment. Since we call start/finish already on the native side, we don't need to repeat it from JS.

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D36541700

fbshipit-source-id: 7d61669710faca3153be557fb2d214011eda87c5
This commit is contained in:
Pieter De Baets
2022-05-23 07:57:42 -07:00
committed by Facebook GitHub Bot
parent 08ebc1cfd8
commit 7e646361ee
2 changed files with 5 additions and 6 deletions
@@ -126,6 +126,8 @@ public class MountItemDispatcher {
mInDispatch = false;
}
// We call didDispatchMountItems regardless of whether we actually dispatched anything, since
// NativeAnimatedModule relies on this for executing any animations that may have been scheduled
mItemDispatchListener.didDispatchMountItems();
// Decide if we want to try reentering