mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
1be2ba4597
commit
e31ff4212b
+1
-3
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user