Skip to content

Commit 71edbe1

Browse files
rshestfacebook-github-bot
authored andcommitted
Make feature flag "enableViewRecyclingForScrollView" true by default
Summary: ## Changelog: [Internal] - Noticed that the default value for this one is inconsistent with all the other similar ones, which can cause confusion during setting up the experiment, fixing it. Note that top level view recycling is still controlled via `enableViewRecycling`, which will also disable all the other ones when false (which it is by default). bypass-github-export-checks Reviewed By: lenaic Differential Revision: D81766029 fbshipit-source-id: df4a260b9bde20d1c85b7786df00fa91298a27b7
1 parent f6a4f24 commit 71edbe1

4 files changed

Lines changed: 7 additions & 7 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<<411732d441bacbef37c3474b9041202c>>
7+
* @generated SignedSource<<c2662bb149153d80e1b42029f7377eb9>>
88
*/
99

1010
/**
@@ -101,7 +101,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
101101

102102
override fun enableViewRecyclingForImage(): Boolean = true
103103

104-
override fun enableViewRecyclingForScrollView(): Boolean = false
104+
override fun enableViewRecyclingForScrollView(): Boolean = true
105105

106106
override fun enableViewRecyclingForText(): Boolean = true
107107

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<<6d8adaa4b960407540afb1d6e42a3840>>
7+
* @generated SignedSource<<203fbd20e17d71ad8aed3e4f9a8a9bae>>
88
*/
99

1010
/**
@@ -184,7 +184,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
184184
}
185185

186186
bool enableViewRecyclingForScrollView() override {
187-
return false;
187+
return true;
188188
}
189189

190190
bool enableViewRecyclingForText() override {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ const definitions: FeatureFlagDefinitions = {
463463
ossReleaseStage: 'none',
464464
},
465465
enableViewRecyclingForScrollView: {
466-
defaultValue: false,
466+
defaultValue: true,
467467
metadata: {
468468
dateAdded: '2025-08-20',
469469
description:

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<<2bef8486b596a7593bbc931da63b2682>>
7+
* @generated SignedSource<<043c615bb3aeec8730273826786b336a>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -359,7 +359,7 @@ export const enableViewRecyclingForImage: Getter<boolean> = createNativeFlagGett
359359
/**
360360
* Enables View Recycling for <ScrollView> via ReactViewGroup/ReactViewManager.
361361
*/
362-
export const enableViewRecyclingForScrollView: Getter<boolean> = createNativeFlagGetter('enableViewRecyclingForScrollView', false);
362+
export const enableViewRecyclingForScrollView: Getter<boolean> = createNativeFlagGetter('enableViewRecyclingForScrollView', true);
363363
/**
364364
* Enables View Recycling for <Text> via ReactTextView/ReactTextViewManager.
365365
*/

0 commit comments

Comments
 (0)