mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable shadow node reference updates by default (#46823)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46823 Changelog: [Internal] Releasing runtime shadow node reference updates, enabling it by default. Reviewed By: shwanton, rubennorte Differential Revision: D63829891 fbshipit-source-id: 9292df3f8c7c8986d8e06d3c526ad1e6e8773916
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f07130bb3
commit
de56fb6309
+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<<fdfe7360e02f319b1bae54c52e2bdf0b>>
|
||||
* @generated SignedSource<<36b028f86ee9985386f7c1a8a576e348>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -113,7 +113,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun useOptimizedEventBatchingOnAndroid(): Boolean = false
|
||||
|
||||
override fun useRuntimeShadowNodeReferenceUpdate(): Boolean = false
|
||||
override fun useRuntimeShadowNodeReferenceUpdate(): Boolean = true
|
||||
|
||||
override fun useRuntimeShadowNodeReferenceUpdateOnLayout(): 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<<bae4296b2dc7665b26622ce379b4bd3b>>
|
||||
* @generated SignedSource<<c1561801b55c88637509befb97d35877>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -208,7 +208,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
}
|
||||
|
||||
bool useRuntimeShadowNodeReferenceUpdate() override {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool useRuntimeShadowNodeReferenceUpdateOnLayout() override {
|
||||
|
||||
@@ -423,7 +423,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
},
|
||||
},
|
||||
useRuntimeShadowNodeReferenceUpdate: {
|
||||
defaultValue: false,
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
dateAdded: '2024-06-03',
|
||||
description:
|
||||
|
||||
@@ -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<<a6f5238c0f123b0ede2b9de95bd98676>>
|
||||
* @generated SignedSource<<63f5264a08dcd36d44b7574d908b6d42>>
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
@@ -369,7 +369,7 @@ export const useOptimizedEventBatchingOnAndroid: Getter<boolean> = createNativeF
|
||||
/**
|
||||
* When enabled, cloning shadow nodes within react native will update the reference held by the current JS fiber tree.
|
||||
*/
|
||||
export const useRuntimeShadowNodeReferenceUpdate: Getter<boolean> = createNativeFlagGetter('useRuntimeShadowNodeReferenceUpdate', false);
|
||||
export const useRuntimeShadowNodeReferenceUpdate: Getter<boolean> = createNativeFlagGetter('useRuntimeShadowNodeReferenceUpdate', true);
|
||||
/**
|
||||
* When enabled, cloning shadow nodes during layout will update the reference held by the current JS fiber tree.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user