Skip to content

Commit 8c23b27

Browse files
Describe the pre-mount before the traversal in the flag's description
The description named only the slices after each frame. A frame that follows one whose draw slept also pre-mounts before its traversal, so the description now says so, as PreMountItemsBetweenFrames does.
1 parent 6700008 commit 8c23b27

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.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<<abb5d24dad0e0685eea26d5b8d0e035f>>
7+
* @generated SignedSource<<6d17652dc2d02644c8b5ad0133d2dae3>>
88
*/
99

1010
/**
@@ -313,7 +313,7 @@ public object ReactNativeFeatureFlags {
313313
public fun enablePreallocatedPropsDiffOnInsertAndroid(): Boolean = accessor.enablePreallocatedPropsDiffOnInsertAndroid()
314314

315315
/**
316-
* Pre-mount views on Android after each frame is drawn, in short slices that stop before the next vsync, instead of before the frame is drawn for half of a 60 Hz frame.
316+
* Pre-mount views on Android in the time each frame leaves free: after the frame, in short slices that stop before the next vsync, and before its traversal for as long as the previous draw slept, at most half a frame, instead of before every traversal for half of a 60 Hz frame.
317317
*/
318318
@JvmStatic
319319
public fun enablePremountItemsBetweenFramesAndroid(): Boolean = accessor.enablePremountItemsBetweenFramesAndroid()

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlags.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<<35accad3c60bf332b67e61529aab9d61>>
7+
* @generated SignedSource<<6ffd411c79e6502fee182c3e54e9eb0a>>
88
*/
99

1010
/**
@@ -277,7 +277,7 @@ class ReactNativeFeatureFlags {
277277
RN_EXPORT static bool enablePreallocatedPropsDiffOnInsertAndroid();
278278

279279
/**
280-
* Pre-mount views on Android after each frame is drawn, in short slices that stop before the next vsync, instead of before the frame is drawn for half of a 60 Hz frame.
280+
* Pre-mount views on Android in the time each frame leaves free: after the frame, in short slices that stop before the next vsync, and before its traversal for as long as the previous draw slept, at most half a frame, instead of before every traversal for half of a 60 Hz frame.
281281
*/
282282
RN_EXPORT static bool enablePremountItemsBetweenFramesAndroid();
283283

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ const definitions: FeatureFlagDefinitions = {
560560
metadata: {
561561
dateAdded: '2026-10-20',
562562
description:
563-
'Pre-mount views on Android after each frame is drawn, in short slices that stop before the next vsync, instead of before the frame is drawn for half of a 60 Hz frame.',
563+
'Pre-mount views on Android in the time each frame leaves free: after the frame, in short slices that stop before the next vsync, and before its traversal for as long as the previous draw slept, at most half a frame, instead of before every traversal for half of a 60 Hz frame.',
564564
expectedReleaseValue: true,
565565
purpose: 'experimentation',
566566
},

‎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<<6ea3d949b27ee02705ec859642be72ab>>
7+
* @generated SignedSource<<3f253bd16eaaf577089194b4442ec2c6>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -409,7 +409,7 @@ export const enableNativeCSSParsing: Getter<boolean> = createNativeFlagGetter('e
409409
*/
410410
export const enablePreallocatedPropsDiffOnInsertAndroid: Getter<boolean> = createNativeFlagGetter('enablePreallocatedPropsDiffOnInsertAndroid', false);
411411
/**
412-
* Pre-mount views on Android after each frame is drawn, in short slices that stop before the next vsync, instead of before the frame is drawn for half of a 60 Hz frame.
412+
* Pre-mount views on Android in the time each frame leaves free: after the frame, in short slices that stop before the next vsync, and before its traversal for as long as the previous draw slept, at most half a frame, instead of before every traversal for half of a 60 Hz frame.
413413
*/
414414
export const enablePremountItemsBetweenFramesAndroid: Getter<boolean> = createNativeFlagGetter('enablePremountItemsBetweenFramesAndroid', false);
415415
/**

0 commit comments

Comments
 (0)