Fully rollout FabricSharedEventPipeline (#42949)

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42949

Reviewed By: javache, sammy-SC

Differential Revision: D53552253

fbshipit-source-id: 67e9db9bd48dd9c37a78e74faf0406fef0c3ad8d
This commit is contained in:
David Vacca
2024-02-09 18:27:03 -08:00
committed by Facebook GitHub Bot
parent ee21b85dae
commit 91fe3b484b
3 changed files with 1 additions and 10 deletions
@@ -1896,7 +1896,6 @@ public class com/facebook/react/config/ReactFeatureFlags {
public static field enableFabricPendingEventQueue Z
public static field enableFabricRenderer Z
public static field enableFabricRendererExclusively Z
public static field enableFabricSharedEventPipeline Z
public static field enableMountHooks Z
public static field enableOnDemandReactChoreographer Z
public static field enableRemoveDeleteTreeInstruction Z
@@ -115,9 +115,6 @@ public class ReactFeatureFlags {
/** Use native view configs in bridgeless mode. */
public static boolean useNativeViewConfigsInBridgelessMode = false;
/** Utilize shared Event C++ pipeline with fabric's renderer */
public static boolean enableFabricSharedEventPipeline = true;
/** When enabled, Fabric will avoid cloning notes to perform state progression. */
public static boolean enableClonelessStateProgression = false;
@@ -80,7 +80,6 @@ import com.facebook.react.uimanager.ViewManagerRegistry;
import com.facebook.react.uimanager.events.BatchEventDispatchedListener;
import com.facebook.react.uimanager.events.EventCategoryDef;
import com.facebook.react.uimanager.events.EventDispatcher;
import com.facebook.react.uimanager.events.EventDispatcherImpl;
import com.facebook.react.uimanager.events.FabricEventDispatcher;
import com.facebook.react.uimanager.events.RCTEventEmitter;
import com.facebook.react.views.text.TextLayoutManager;
@@ -219,11 +218,7 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
mMountingManager = new MountingManager(viewManagerRegistry, mMountItemExecutor);
mMountItemDispatcher =
new MountItemDispatcher(mMountingManager, new MountItemDispatchListener());
if (ReactFeatureFlags.enableFabricSharedEventPipeline) {
mEventDispatcher = new FabricEventDispatcher(reactContext);
} else {
mEventDispatcher = new EventDispatcherImpl(reactContext);
}
mEventDispatcher = new FabricEventDispatcher(reactContext);
mBatchEventDispatchedListener = batchEventDispatchedListener;
mReactApplicationContext.addLifecycleEventListener(this);