mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
RN: Enable enableVirtualViewRenderState by Default (#52686)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52686 Enables the `enableVirtualViewRenderState` feature flag by default. Also, fixed classification for this and the `enableVirtualViewWindowFocusDetection` feature flags. (They were incorrect.) Changelog: [Internal] Reviewed By: lunaleaps Differential Revision: D78500846 fbshipit-source-id: 099adaa4ed0026c8bb7438df869564d76a999007
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5d4d1ce84b
commit
d78c242e4d
+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<<99019349a8f3642c42e6dac5f1476e7f>>
|
||||
* @generated SignedSource<<c5ed8a904dcda7ade87527233b879b92>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -101,7 +101,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun enableVirtualViewDebugFeatures(): Boolean = false
|
||||
|
||||
override fun enableVirtualViewRenderState(): Boolean = false
|
||||
override fun enableVirtualViewRenderState(): Boolean = true
|
||||
|
||||
override fun enableVirtualViewWindowFocusDetection(): 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<<d7534fe6e3b398e56c179da8233e3b0a>>
|
||||
* @generated SignedSource<<614fe0894f6235d879a0b29e7dab7759>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -184,7 +184,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
}
|
||||
|
||||
bool enableVirtualViewRenderState() override {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool enableVirtualViewWindowFocusDetection() override {
|
||||
|
||||
@@ -462,22 +462,24 @@ const definitions: FeatureFlagDefinitions = {
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
enableVirtualViewRenderState: {
|
||||
defaultValue: false,
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
dateAdded: '2025-06-25',
|
||||
description:
|
||||
'Enables reading render state when dispatching VirtualView events.',
|
||||
expectedReleaseValue: true,
|
||||
purpose: 'operational',
|
||||
purpose: 'experimentation',
|
||||
},
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
enableVirtualViewWindowFocusDetection: {
|
||||
defaultValue: false,
|
||||
metadata: {
|
||||
dateAdded: '2025-06-24',
|
||||
description:
|
||||
'Enables window focus detection for prioritizing VirtualView events.',
|
||||
expectedReleaseValue: true,
|
||||
purpose: 'operational',
|
||||
purpose: 'experimentation',
|
||||
},
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
|
||||
@@ -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<<fd428af720f8a8cf58e5beb582078825>>
|
||||
* @generated SignedSource<<abb7c04a41689edfe7a46e371125ab30>>
|
||||
* @flow strict
|
||||
* @noformat
|
||||
*/
|
||||
@@ -334,7 +334,7 @@ export const enableVirtualViewDebugFeatures: Getter<boolean> = createNativeFlagG
|
||||
/**
|
||||
* Enables reading render state when dispatching VirtualView events.
|
||||
*/
|
||||
export const enableVirtualViewRenderState: Getter<boolean> = createNativeFlagGetter('enableVirtualViewRenderState', false);
|
||||
export const enableVirtualViewRenderState: Getter<boolean> = createNativeFlagGetter('enableVirtualViewRenderState', true);
|
||||
/**
|
||||
* Enables window focus detection for prioritizing VirtualView events.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user