mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable useFabricInterop by default for internal apps (#50295)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 fbshipit-source-id: 825338db486d8f64c44c2d4c28394d8b789c4195
This commit is contained in:
committed by
Facebook GitHub Bot
parent
21c858ce3e
commit
aef1f9ba1d
+2
-2
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<0c111ea4ea86fce421aa4addb8ad0e4e>>
|
||||
* @generated SignedSource<<309ae9cf008963de368916b3d28c5491>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -95,7 +95,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun useEditTextStockAndroidFocusBehavior(): Boolean = true
|
||||
|
||||
override fun useFabricInterop(): Boolean = false
|
||||
override fun useFabricInterop(): Boolean = true
|
||||
|
||||
override fun useNativeViewConfigsInBridgelessMode(): Boolean = false
|
||||
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<988e6c024f8526a676dd586cab91c98e>>
|
||||
* @generated SignedSource<<db41f69099c193919e931d3879541fe3>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -172,7 +172,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
}
|
||||
|
||||
bool useFabricInterop() override {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool useNativeViewConfigsInBridgelessMode() override {
|
||||
|
||||
@@ -428,7 +428,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
useFabricInterop: {
|
||||
defaultValue: false,
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
description:
|
||||
'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.',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<cfb93f77067ecb7b6729bfe388949737>>
|
||||
* @generated SignedSource<<d1971c39b882dcf8872ecc0bd91594c8>>
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
@@ -307,7 +307,7 @@ export const useEditTextStockAndroidFocusBehavior: Getter<boolean> = createNativ
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export const useFabricInterop: Getter<boolean> = createNativeFlagGetter('useFabricInterop', false);
|
||||
export const useFabricInterop: Getter<boolean> = createNativeFlagGetter('useFabricInterop', true);
|
||||
/**
|
||||
* When enabled, the native view configs are used in bridgeless mode.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user