Skip to content

Commit e31ff42

Browse files
coadofacebook-github-bot
authored andcommitted
Added type for _captureRef in SectionList (#48863)
Summary: Pull Request resolved: #48863 Changelog: [General][Changed] - Added explicit type for argument in _captureRef in SectionList Reviewed By: huntie Differential Revision: D68493326 fbshipit-source-id: 906a13b13e9fc7ee2c61a8d5c7caa72c0656440f
1 parent 1be2ba4 commit e31ff42

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/react-native/Libraries/Lists/SectionList.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ export default class SectionList<
261261
}
262262

263263
_wrapperListRef: ?React.ElementRef<typeof VirtualizedSectionList>;
264-
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
265-
* LTI update could not be added via codemod */
266-
_captureRef = ref => {
264+
_captureRef = (ref: ?React.RefOf<VirtualizedSectionList>) => {
267265
this._wrapperListRef = ref;
268266
};
269267
}

0 commit comments

Comments
 (0)