Skip to content

Remove enableFabricRenderer feature flag#56909

Open
mdvacca wants to merge 2 commits into
facebook:mainfrom
mdvacca:export-D105232652
Open

Remove enableFabricRenderer feature flag#56909
mdvacca wants to merge 2 commits into
facebook:mainfrom
mdvacca:export-D105232652

Conversation

@mdvacca
Copy link
Copy Markdown
Contributor

@mdvacca mdvacca commented May 20, 2026

Summary:
The enableFabricRenderer feature flag has been removed; it was always set to true on the canary release stage and there are no remaining callers (all inlined in earlier diffs of this stack).

This diff:

  • Removes the enableFabricRenderer entry from ReactNativeFeatureFlags.config.js.
  • Updates the description of enableBridgelessArchitecture (which referenced enableFabricRenderer).
  • Regenerates the codegen output: the 7 Kotlin generated files in ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/, the C++ headers and implementations under ReactCommon/react/featureflags/ and ReactCommon/react/nativemodule/featureflags/, the JNI bridge under ReactAndroid/src/main/jni/react/featureflags/, and the JS modules under src/private/featureflags/.

The flag is in the com.facebook.react.internal.featureflags package and is excluded from ReactAndroid.api tracking; no API metadata regeneration is needed.

Behavior is unchanged.

Changelog:
[Android][Removed] - Remove enableFabricRenderer feature flag — Fabric is now always enabled

Reviewed By: javache

Differential Revision: D105232652

mdvacca added 2 commits May 20, 2026 09:55
Summary:
The `enableFabricRenderer()` virtual method is being removed from `ReactNativeFeatureFlagsDefaults`. This diff removes the now-stale `enableFabricRenderer() override` methods from downstream `ReactNativeFeatureFlagsDefaults` subclasses so they compile cleanly once the parent method is gone.

Also removes the now-unused `enableFabric` parameter from `createFBReactModuleDefaultsFeatureFlagsProvider` and its single caller.

Behavior is unchanged because every override returned `true` (the value the runtime always took at this point) and no other code path depends on the flag.

Changelog:
[Internal]

Differential Revision: D105347594
Summary:
The `enableFabricRenderer` feature flag has been removed; it was always set to true on the canary release stage and there are no remaining callers (all inlined in earlier diffs of this stack).

This diff:
- Removes the `enableFabricRenderer` entry from `ReactNativeFeatureFlags.config.js`.
- Updates the description of `enableBridgelessArchitecture` (which referenced `enableFabricRenderer`).
- Regenerates the codegen output: the 7 Kotlin `generated` files in `ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/`, the C++ headers and implementations under `ReactCommon/react/featureflags/` and `ReactCommon/react/nativemodule/featureflags/`, the JNI bridge under `ReactAndroid/src/main/jni/react/featureflags/`, and the JS modules under `src/private/featureflags/`.

The flag is in the `com.facebook.react.internal.featureflags` package and is excluded from `ReactAndroid.api` tracking; no API metadata regeneration is needed.

Behavior is unchanged.

Changelog:
[Android][Removed] - Remove `enableFabricRenderer` feature flag — Fabric is now always enabled

Reviewed By: javache

Differential Revision: D105232652
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 20, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 20, 2026

@mdvacca has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105232652.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant