From 5a8fe4367303e02f348eba53f8fe87577e88e2bb Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Thu, 2 May 2024 12:46:05 -0700 Subject: [PATCH] : Add static ViewConfig for scrollEventThrottle Summary: This prop was introduced into horizontal in D35735978. **Note:** This prop did not work for bridgeless mode. Changelog: [Internal] Reviewed By: javache Differential Revision: D56854758 fbshipit-source-id: 2b25296a065b01f11aa04c2ff06cabf64ff5fce1 --- .../ScrollView/AndroidHorizontalScrollViewNativeComponent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js b/packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js index 6cfd728b3e9..c99ea196ae3 100644 --- a/packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +++ b/packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js @@ -32,6 +32,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = { persistentScrollbar: true, horizontal: true, scrollEnabled: true, + scrollEventThrottle: true, scrollPerfTag: true, sendMomentumEvents: true, showsHorizontalScrollIndicator: true,