Skip to content

Commit 2c8f892

Browse files
huntiefacebook-github-bot
authored andcommitted
Enable/mark enableBridgelessArchitecture flag as stable (#57529)
Summary: The New Arch has been Stage 4 / rolled out since 0.76. Before cleaning up this flag completely, defensively flip its default value to `true`. Changelog: [Internal] - Net flag value is the same from all entry points Differential Revision: D111703112
1 parent b31ba29 commit 2c8f892

9 files changed

Lines changed: 11 additions & 23 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<5c36c0a5e9e67b43016ab02eab0ecd8f>>
7+
* @generated SignedSource<<9b295106ef57d7fa85846c57bb74a090>>
88
*/
99

1010
/**
@@ -51,7 +51,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
5151

5252
override fun enableAndroidTextMeasurementOptimizations(): Boolean = false
5353

54-
override fun enableBridgelessArchitecture(): Boolean = false
54+
override fun enableBridgelessArchitecture(): Boolean = true
5555

5656
override fun enableCppPropsIteratorSetter(): Boolean = false
5757

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Canary_Android.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<d0524c8293f029992b78e4f9479b8a1d>>
7+
* @generated SignedSource<<1664bdb6cd521d608b9bab74df43eb76>>
88
*/
99

1010
/**
@@ -27,8 +27,6 @@ public open class ReactNativeFeatureFlagsOverrides_RNOSS_Canary_Android : ReactN
2727

2828
override fun enableAccessibilityOrder(): Boolean = true
2929

30-
override fun enableBridgelessArchitecture(): Boolean = true
31-
3230
override fun enableIntersectionObserverByDefault(): Boolean = true
3331

3432
override fun enableSwiftUIBasedFilters(): Boolean = true

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeNewArchitectureFeatureFlagsDefaults.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ package com.facebook.react.internal.featureflags
2323
public open class ReactNativeNewArchitectureFeatureFlagsDefaults() :
2424
ReactNativeFeatureFlagsDefaults() {
2525

26-
override fun enableBridgelessArchitecture(): Boolean = true
27-
2826
override fun useNativeViewConfigsInBridgelessMode(): Boolean = true
2927

3028
override fun useTurboModuleInterop(): Boolean = true

packages/react-native/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ TYPED_TEST(JsiIntegrationPortableTest, ReactNativeApplicationEnable) {
360360
"integrationName": "JsiIntegrationTest",
361361
"unstable_frameRecordingEnabled": false,
362362
"unstable_isProfilingBuild": false,
363-
"unstable_networkInspectionEnabled": false
363+
"unstable_networkInspectionEnabled": true
364364
}
365365
})"));
366366

packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<c511b77030561c7a6655eb512082462c>>
7+
* @generated SignedSource<<2c09412cdf8edaf4f7d6d90a446ce6fa>>
88
*/
99

1010
/**
@@ -84,7 +84,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
8484
}
8585

8686
bool enableBridgelessArchitecture() override {
87-
return false;
87+
return true;
8888
}
8989

9090
bool enableCppPropsIteratorSetter() override {

packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<5d286510a4f8642adcc9d38556dd60dd>>
7+
* @generated SignedSource<<8f83d4d3c457e0f6acda799cfe58144a>>
88
*/
99

1010
/**
@@ -35,10 +35,6 @@ class ReactNativeFeatureFlagsOverridesOSSCanary : public ReactNativeFeatureFlags
3535
return true;
3636
}
3737

38-
bool enableBridgelessArchitecture() override {
39-
return true;
40-
}
41-
4238
bool enableIntersectionObserverByDefault() override {
4339
return true;
4440
}

packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSStable.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ namespace facebook::react {
1313

1414
class ReactNativeFeatureFlagsOverridesOSSStable : public ReactNativeFeatureFlagsDefaults {
1515
public:
16-
bool enableBridgelessArchitecture() override
17-
{
18-
return true;
19-
}
2016
bool useNativeViewConfigsInBridgelessMode() override
2117
{
2218
return true;

packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ const definitions: FeatureFlagDefinitions = {
203203
ossReleaseStage: 'none',
204204
},
205205
enableBridgelessArchitecture: {
206-
defaultValue: false,
206+
defaultValue: true,
207207
metadata: {
208208
description: 'Feature flag to enable the new bridgeless architecture.',
209209
expectedReleaseValue: true,
210210
purpose: 'release',
211211
},
212-
ossReleaseStage: 'canary',
212+
ossReleaseStage: 'stable',
213213
},
214214
enableCppPropsIteratorSetter: {
215215
defaultValue: false,

packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<ff39edecf287d3fe3638da2f71e6bd1c>>
7+
* @generated SignedSource<<36a98575851fdf73cb45a0d34c3a8755>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -270,7 +270,7 @@ export const enableAndroidTextMeasurementOptimizations: Getter<boolean> = create
270270
/**
271271
* Feature flag to enable the new bridgeless architecture.
272272
*/
273-
export const enableBridgelessArchitecture: Getter<boolean> = createNativeFlagGetter('enableBridgelessArchitecture', false);
273+
export const enableBridgelessArchitecture: Getter<boolean> = createNativeFlagGetter('enableBridgelessArchitecture', true);
274274
/**
275275
* Enable prop iterator setter-style construction of Props in C++ (this flag is not used in Java).
276276
*/

0 commit comments

Comments
 (0)