mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ee21b85dae
commit
91fe3b484b
@@ -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
|
||||
|
||||
-3
@@ -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;
|
||||
|
||||
|
||||
+1
-6
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user