Skip to content

Commit f2e7160

Browse files
Enable useFabricInterop by default for internal apps (facebook#50295)
Summary: Pull Request resolved: facebook#50295 Enabling `useFabricInterop` by default for internal apps since before D71582553 iOS wasn't using useFabricInterop in it's codebase and old architecture with Interop enabled is harmless. This is to keep the current behaviour consistent. Changelog: [Internal] Reviewed By: philIip Differential Revision: D71908601
1 parent fbfdd7e commit f2e7160

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

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<<0c111ea4ea86fce421aa4addb8ad0e4e>>
7+
* @generated SignedSource<<309ae9cf008963de368916b3d28c5491>>
88
*/
99

1010
/**
@@ -95,7 +95,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
9595

9696
override fun useEditTextStockAndroidFocusBehavior(): Boolean = true
9797

98-
override fun useFabricInterop(): Boolean = false
98+
override fun useFabricInterop(): Boolean = true
9999

100100
override fun useNativeViewConfigsInBridgelessMode(): Boolean = false
101101

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<<988e6c024f8526a676dd586cab91c98e>>
7+
* @generated SignedSource<<db41f69099c193919e931d3879541fe3>>
88
*/
99

1010
/**
@@ -172,7 +172,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
172172
}
173173

174174
bool useFabricInterop() override {
175-
return false;
175+
return true;
176176
}
177177

178178
bool useNativeViewConfigsInBridgelessMode() override {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ const definitions: FeatureFlagDefinitions = {
428428
ossReleaseStage: 'none',
429429
},
430430
useFabricInterop: {
431-
defaultValue: false,
431+
defaultValue: true,
432432
metadata: {
433433
description:
434434
'Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.',

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<<bb1c3b4c3d3d20ab463e4d0131efc3d9>>
7+
* @generated SignedSource<<f18d3459142aad7804c10e6b98b549b7>>
88
* @flow strict
99
*/
1010

@@ -307,7 +307,7 @@ export const useEditTextStockAndroidFocusBehavior: Getter<boolean> = createNativ
307307
/**
308308
* Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.
309309
*/
310-
export const useFabricInterop: Getter<boolean> = createNativeFlagGetter('useFabricInterop', false);
310+
export const useFabricInterop: Getter<boolean> = createNativeFlagGetter('useFabricInterop', true);
311311
/**
312312
* When enabled, the native view configs are used in bridgeless mode.
313313
*/

0 commit comments

Comments
 (0)