Added type for _captureRef in SectionList (#48863)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48863

Changelog:
[General][Changed] - Added explicit type for argument in _captureRef in SectionList

Reviewed By: huntie

Differential Revision: D68493326

fbshipit-source-id: 906a13b13e9fc7ee2c61a8d5c7caa72c0656440f
This commit is contained in:
Dawid Małecki
2025-01-22 10:34:21 -08:00
committed by Facebook GitHub Bot
parent 1be2ba4597
commit e31ff4212b
+1 -3
View File
@@ -261,9 +261,7 @@ export default class SectionList<
}
_wrapperListRef: ?React.ElementRef<typeof VirtualizedSectionList>;
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
* LTI update could not be added via codemod */
_captureRef = ref => {
_captureRef = (ref: ?React.RefOf<VirtualizedSectionList>) => {
this._wrapperListRef = ref;
};
}