diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 651e3508b2..d4f9934f94 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -77,6 +77,7 @@ type OptionalProps> = { * and as the react key to track item re-ordering. The default extractor checks item.key, then * falls back to using the index, like react does. */ + keyExtractor: (item: Item, index: number) => string, /** * Called once when the scroll position gets within `onEndReachedThreshold` of the rendered @@ -247,7 +248,7 @@ class SectionList> return ; } - _wrapperListRef: MetroListView | VirtualizedSectionList<*>; + _wrapperListRef: MetroListView | VirtualizedSectionList; _captureRef = (ref) => { this._wrapperListRef = ref; }; }