Skip to content

Commit

Permalink
Fully rollout FabricSharedEventPipeline (#42949)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #42949

Reviewed By: javache, sammy-SC

Differential Revision: D53552253

fbshipit-source-id: 67e9db9bd48dd9c37a78e74faf0406fef0c3ad8d
  • Loading branch information
mdvacca authored and facebook-github-bot committed Feb 10, 2024
1 parent ee21b85 commit 91fe3b4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
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;
Expand Down Expand Up @@ -219,11 +218,7 @@ public FabricUIManager(
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);

Expand Down

0 comments on commit 91fe3b4

Please sign in to comment.