Skip to content

Commit 3e62eb8

Browse files
YunPeng Chongmeta-codesync[bot]
authored andcommitted
ERROR: StaticViewConfigValidator: Invalid static view config for 'AndroidHorizontalScrollView' (#55299)
Summary: Pull Request resolved: #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
1 parent 99b328b commit 3e62eb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
5959
process: require('../../StyleSheet/processColor').default,
6060
},
6161
pointerEvents: true,
62+
scrollsChildToFocus: true,
6263
},
6364
};
6465

0 commit comments

Comments
 (0)