From 3e62eb8e276e0a27adabf474dd98b6262fc3d5e4 Mon Sep 17 00:00:00 2001 From: YunPeng Chong Date: Mon, 26 Jan 2026 12:26:52 -0800 Subject: [PATCH] ERROR: StaticViewConfigValidator: Invalid static view config for 'AndroidHorizontalScrollView' (#55299) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55299 Add missing scrollsChildToFocus attribute to AndroidHorizontalScrollViewNativeComponent.js validAttributes to fix StaticViewConfigValidator error. The native Android side (ReactHorizontalScrollViewManager.kt) defines scrollsChildToFocus as a ReactProp, but the JavaScript static view config was missing this attribute. This fixes the error: ERROR StaticViewConfigValidator: Invalid static view config for 'AndroidHorizontalScrollView'. 'validAttributes.scrollsChildToFocus' is missing. Changelog: [Internal] Reviewed By: javache Differential Revision: D91480519 fbshipit-source-id: d70b93467fe313838e268d95f98010d67197c3b4 --- .../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 7f2179f5fde..42b14386d25 100644 --- a/packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +++ b/packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js @@ -59,6 +59,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = { process: require('../../StyleSheet/processColor').default, }, pointerEvents: true, + scrollsChildToFocus: true, }, };