mirror of
https://github.com/react/react-native.git
synced 2026-09-28 05:13:06 +08:00
Remove Fabric and TurboModule dead config (#58434)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58434 Follow-up to D116318829, addressing rubennorte's review comment. Fabric and TurboModules shipped before bridgeless and are always on, so the toggles for them were hardcoded and read nowhere. Android, `DefaultNewArchitectureEntryPoint` — now only selects the release channel and loads the SO: - removed `fabricEnabled`, `turboModulesEnabled`, `concurrentReactEnabled` - removed the deprecated `load(turboModulesEnabled)` and `load(turboModulesEnabled, fabricEnabled)` overloads - removed `isConfigurationValid`, and with it `DefaultNewArchitectureEntryPointTest` (every test targeted it) - updated the 8 in-repo call sites that passed `fabricEnabled` into the deprecated 3-arg `DefaultReactActivityDelegate` constructor, which discarded it iOS: - removed `fabricEnabled` / `turboModuleEnabled` from `RCTRootViewFactoryConfiguration` - removed the corresponding `RCTDefaultReactNativeFactoryDelegate` stubs and the `RCTAppDelegate.h` doc references `ReactAndroid.api` and the `ReactApple*Cxx.api` snapshots are regenerated. One call site is not updated here: `users/zh/zhaogang/benchmarks/SimpleRN/android/app/src/main/java/com/simplern/MainActivity.kt` still imports `DefaultNewArchitectureEntryPoint.fabricEnabled`. It is a personal benchmark app under `users/` that is not materialized in this working copy, so it could not be edited. Changelog: [General][Breaking] - Remove the `fabricEnabled` / `turboModulesEnabled` / `concurrentReactEnabled` accessors and remaining deprecated `load` overloads from `DefaultNewArchitectureEntryPoint`, and the `fabricEnabled` / `turboModuleEnabled` properties from `RCTRootViewFactoryConfiguration`; Fabric and TurboModules are always enabled https://www.internalfb.com/agent-home?session_id=dmh-2bfbb113-43fc-4bc4-819d-874c5101a1c8 Reviewed By: javache Differential Revision: D119380472 fbshipit-source-id: 19c130c3dda5c1cd6d541f4e726d8041b515c05c
This commit is contained in:
committed by
meta-codesync[bot]
parent
2771618619
commit
562fe3433a
@@ -1693,8 +1693,6 @@ interface RCTRootViewFactoryConfiguration : public NSObject {
|
||||
public @property (assign) RCTLoadSourceForBridgeBlock loadSourceForBridge;
|
||||
public @property (assign) RCTLoadSourceForBridgeWithProgressBlock loadSourceForBridgeWithProgress;
|
||||
public @property (assign) RCTSourceURLForBridgeBlock sourceURLForBridge;
|
||||
public @property (assign, readonly) BOOL fabricEnabled;
|
||||
public @property (assign, readonly) BOOL turboModuleEnabled;
|
||||
public @property (weak) id<RCTJSRuntimeConfiguratorProtocol> jsRuntimeConfiguratorDelegate;
|
||||
public virtual instancetype initWithBundleURL:newArchEnabled:(NSURL* bundleURL, BOOL newArchEnabled);
|
||||
public virtual instancetype initWithBundleURLBlock:newArchEnabled:(RCTBundleURLBlock bundleURLBlock, BOOL newArchEnabled);
|
||||
|
||||
@@ -1692,8 +1692,6 @@ interface RCTRootViewFactoryConfiguration : public NSObject {
|
||||
public @property (assign) RCTLoadSourceForBridgeBlock loadSourceForBridge;
|
||||
public @property (assign) RCTLoadSourceForBridgeWithProgressBlock loadSourceForBridgeWithProgress;
|
||||
public @property (assign) RCTSourceURLForBridgeBlock sourceURLForBridge;
|
||||
public @property (assign, readonly) BOOL fabricEnabled;
|
||||
public @property (assign, readonly) BOOL turboModuleEnabled;
|
||||
public @property (weak) id<RCTJSRuntimeConfiguratorProtocol> jsRuntimeConfiguratorDelegate;
|
||||
public virtual instancetype initWithBundleURL:newArchEnabled:(NSURL* bundleURL, BOOL newArchEnabled);
|
||||
public virtual instancetype initWithBundleURLBlock:newArchEnabled:(RCTBundleURLBlock bundleURLBlock, BOOL newArchEnabled);
|
||||
|
||||
@@ -1693,8 +1693,6 @@ interface RCTRootViewFactoryConfiguration : public NSObject {
|
||||
public @property (assign) RCTLoadSourceForBridgeBlock loadSourceForBridge;
|
||||
public @property (assign) RCTLoadSourceForBridgeWithProgressBlock loadSourceForBridgeWithProgress;
|
||||
public @property (assign) RCTSourceURLForBridgeBlock sourceURLForBridge;
|
||||
public @property (assign, readonly) BOOL fabricEnabled;
|
||||
public @property (assign, readonly) BOOL turboModuleEnabled;
|
||||
public @property (weak) id<RCTJSRuntimeConfiguratorProtocol> jsRuntimeConfiguratorDelegate;
|
||||
public virtual instancetype initWithBundleURL:newArchEnabled:(NSURL* bundleURL, BOOL newArchEnabled);
|
||||
public virtual instancetype initWithBundleURLBlock:newArchEnabled:(RCTBundleURLBlock bundleURLBlock, BOOL newArchEnabled);
|
||||
|
||||
Reference in New Issue
Block a user