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
This commit is contained in:
YunPeng Chong authored and meta-codesync[bot] committed 2026-01-26 12:26:52 -08:00
1 parent 99b328bffa
commit 3e62eb8e27
1 file changed
+1
@@ -59,6 +59,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
process: require('../../StyleSheet/processColor').default,
},
pointerEvents: true,
scrollsChildToFocus: true,
},
};