diff --git a/packages/react-native/Libraries/Lists/SectionListModern.js b/packages/react-native/Libraries/Lists/SectionListModern.js index b34f78b0a90..a86d8b8a511 100644 --- a/packages/react-native/Libraries/Lists/SectionListModern.js +++ b/packages/react-native/Libraries/Lists/SectionListModern.js @@ -168,7 +168,13 @@ export type Props = $ReadOnly<{ const SectionList: component( ref?: React.RefSetter, ...Props -) = forwardRef, any>((props, ref) => { +) = ({ + ref, + ...props +}: { + ref?: React.RefSetter, + ...Props, +}) => { const propsWithDefaults = { stickySectionHeadersEnabled: Platform.OS === 'ios', ...props, @@ -237,6 +243,6 @@ const SectionList: component( getItem={(items, index) => items[index]} /> ); -}); +}; export default SectionList;