From 4d2262b8d2b38eddbdfb2264a33f87c28aa7712f Mon Sep 17 00:00:00 2001 From: Dmitry Rykun Date: Fri, 1 Mar 2024 03:12:08 -0800 Subject: [PATCH] Add scrollEventThrottle to validAttributes to ScrollView view config on Android Summary: The `scrollEventThrottle` prop is missing in the ViewConfig for ScrollView for the Android platform. Because of that it was ignored by native in the New Architecture. This diff fixes that. Changelog: [Android][Fixed] - Add support for scrollEventThrottle for ScrollView on the New Architecture. Reviewed By: fkgozali Differential Revision: D54303157 fbshipit-source-id: 824f32c2f9fb3958271b094bbfc770992a4335e1 --- .../Libraries/Components/ScrollView/ScrollViewNativeComponent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js b/packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js index 50d95a9de87..7c250c9a30b 100644 --- a/packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +++ b/packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js @@ -60,6 +60,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = sendMomentumEvents: true, borderRadius: true, nestedScrollEnabled: true, + scrollEventThrottle: true, borderStyle: true, borderRightColor: { process: require('../../StyleSheet/processColor').default,