Skip to content

Commit 172379e

Browse files
committed
chore(featureflags): regenerate pressability flag
1 parent 43be869 commit 172379e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js

Lines changed: 7 additions & 1 deletion
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<<68e9dbd18bfcb5e7d5cad27d8663ce66>>
7+
* @generated SignedSource<<11f1e51c94c3e1db36cd46623b2f785a>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -40,6 +40,7 @@ export type ReactNativeFeatureFlagsJsOnly = Readonly<{
4040
externalElementInspectionEnabled: Getter<boolean>,
4141
fixVirtualizeListCollapseWindowSize: Getter<boolean>,
4242
isLayoutAnimationEnabled: Getter<boolean>,
43+
shouldPressabilityUseNativeViewHierarchyForMeasurement: Getter<boolean>,
4344
shouldUseAnimatedObjectForTransform: Getter<boolean>,
4445
shouldUseRemoveClippedSubviewsAsDefaultOnIOS: Getter<boolean>,
4546
shouldUseSetNativePropsInFabric: Getter<boolean>,
@@ -196,6 +197,11 @@ export const fixVirtualizeListCollapseWindowSize: Getter<boolean> = createJavaSc
196197
*/
197198
export const isLayoutAnimationEnabled: Getter<boolean> = createJavaScriptFlagGetter('isLayoutAnimationEnabled', true);
198199

200+
/**
201+
* When enabled, Pressability measures host instances from the native view hierarchy on the UI thread instead of using shadow tree layout metrics.
202+
*/
203+
export const shouldPressabilityUseNativeViewHierarchyForMeasurement: Getter<boolean> = createJavaScriptFlagGetter('shouldPressabilityUseNativeViewHierarchyForMeasurement', false);
204+
199205
/**
200206
* Enables use of AnimatedObject for animating transform values.
201207
*/

0 commit comments

Comments
 (0)