Skip to content

Remove enableBridgelessArchitecture branches from ReactAndroid simple call sites#56999

Open
mdvacca wants to merge 1 commit into
facebook:mainfrom
mdvacca:export-D106719839
Open

Remove enableBridgelessArchitecture branches from ReactAndroid simple call sites#56999
mdvacca wants to merge 1 commit into
facebook:mainfrom
mdvacca:export-D106719839

Conversation

@mdvacca
Copy link
Copy Markdown
Contributor

@mdvacca mdvacca commented May 29, 2026

Summary:
Second in a stack that collapses Android-side branches on ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture() under the standing assumption that on Android the flag is always true. The underlying generated ReactNativeFeatureFlags.enableBridgelessArchitecture() is untouched.

Scope of this commit — ReactAndroid simple call sites:

  • DevSupportManagerBase — drop the flag from the AND chain that gates PerfMonitorOverlayManager creation.
  • HeadlessJsTaskService.reactContext getter and createReactContextAndScheduleTask — keep the reactHost branches; drop the reactInstanceManager fallbacks.
  • ViewManager.getNativeProps — drop the flag from the AND with UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE.
  • ReactImageView — delete the warnImageSource helper and its two call sites. The helper existed only to emit a debug warning that was already gated off in bridgeless mode.
  • ReactEditText.onConfigurationChanged — drop the flag from the AND with enableFontScaleChangesUpdatingLayout.
  • ReactHostImpl.getOrCreateStartTask — drop the always-true debug assertion.
  • DefaultNewArchitectureEntryPoint.loadWithFeatureFlags — set privateBridgelessEnabled = true directly (was reading from the provider).
  • ReactPackageTurboModuleManagerDelegate.shouldEnableLegacyModuleInterop — drop the flag from the AND with useTurboModuleInterop.

No public API surfaces change. arc f auto-removed the now-unused ReactNativeNewArchitectureFeatureFlags imports in the affected files.

Subsequent diffs in the stack will handle: ReactDelegate + deprecated constructors + reactNativeHost field; wrapper method + lint detector.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D106719839

…le call sites

Summary:
Second in a stack that collapses Android-side branches on `ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture()` under the standing assumption that on Android the flag is always `true`. The underlying generated `ReactNativeFeatureFlags.enableBridgelessArchitecture()` is untouched.

Scope of this commit — ReactAndroid simple call sites:

- `DevSupportManagerBase` — drop the flag from the AND chain that gates `PerfMonitorOverlayManager` creation.
- `HeadlessJsTaskService.reactContext` getter and `createReactContextAndScheduleTask` — keep the `reactHost` branches; drop the `reactInstanceManager` fallbacks.
- `ViewManager.getNativeProps` — drop the flag from the AND with `UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE`.
- `ReactImageView` — delete the `warnImageSource` helper and its two call sites. The helper existed only to emit a debug warning that was already gated off in bridgeless mode.
- `ReactEditText.onConfigurationChanged` — drop the flag from the AND with `enableFontScaleChangesUpdatingLayout`.
- `ReactHostImpl.getOrCreateStartTask` — drop the always-true debug assertion.
- `DefaultNewArchitectureEntryPoint.loadWithFeatureFlags` — set `privateBridgelessEnabled = true` directly (was reading from the provider).
- `ReactPackageTurboModuleManagerDelegate.shouldEnableLegacyModuleInterop` — drop the flag from the AND with `useTurboModuleInterop`.

No public API surfaces change. `arc f` auto-removed the now-unused `ReactNativeNewArchitectureFeatureFlags` imports in the affected files.

Subsequent diffs in the stack will handle: `ReactDelegate` + deprecated constructors + `reactNativeHost` field; wrapper method + lint detector.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D106719839
@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 29, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 29, 2026

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

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