Pre-suppress errors before the next Flow release
Summary: Changelog: [Internal] Reviewed By: fred2028 Differential Revision: D42006446 fbshipit-source-id: de6c327a540e5085ac196679cf7db7db8a681298
This commit is contained in:
Родитель
455ca8cfaf
Коммит
fc3565ce8d
|
@ -248,7 +248,9 @@ export default class SectionList<
|
|||
{...restProps}
|
||||
stickySectionHeadersEnabled={stickySectionHeadersEnabled}
|
||||
ref={this._captureRef}
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
getItemCount={items => items.length}
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
getItem={(items, index) => items[index]}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -23,6 +23,7 @@ describe('VirtualizedSectionList', () => {
|
|||
// $FlowFixMe[incompatible-type]
|
||||
{title: 's1', data: [{key: 'i1'}, {key: 'i2'}, {key: 'i3'}]},
|
||||
]}
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
renderItem={({item}) => <item value={item.key} />}
|
||||
getItem={(data, key) => data[key]}
|
||||
getItemCount={data => data.length}
|
||||
|
@ -83,6 +84,7 @@ describe('VirtualizedSectionList', () => {
|
|||
// $FlowFixMe[incompatible-type]
|
||||
{
|
||||
title: 's1',
|
||||
// $FlowFixMe[incompatible-call]
|
||||
data: new Array<void>(5).fill().map((_, ii) => ({id: String(ii)})),
|
||||
},
|
||||
]}
|
||||
|
|
|
@ -282,10 +282,12 @@ export function SectionList_scrollable(Props: {
|
|||
ListHeaderComponent={HeaderComponent}
|
||||
ListFooterComponent={FooterComponent}
|
||||
// eslint-disable-next-line react/no-unstable-nested-components
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
SectionSeparatorComponent={info => (
|
||||
<CustomSeparatorComponent {...info} text="SECTION SEPARATOR" />
|
||||
)}
|
||||
// eslint-disable-next-line react/no-unstable-nested-components
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
ItemSeparatorComponent={info => (
|
||||
<CustomSeparatorComponent {...info} text="ITEM SEPARATOR" />
|
||||
)}
|
||||
|
|
Загрузка…
Ссылка в новой задаче