VirtualizedList update parentProps.getItemLayout flow type

Summary:
This is a tighter type that matches the actual prop as defined on line 100

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D17863133

fbshipit-source-id: 97f966ff13aa2ce36ef936a9a154fdd137191c6b
This commit is contained in:
Eli White 2019-10-11 09:44:48 -07:00 коммит произвёл Facebook Github Bot
Родитель 7a2e83dba5
Коммит 43ff9da68d
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1810,7 +1810,10 @@ type CellRendererProps = {
onUnmount: (cellKey: string) => void,
onUpdateSeparators: (cellKeys: Array<?string>, props: Object) => void,
parentProps: {
getItemLayout?: ?Function,
getItemLayout?: (
data: any,
index: number,
) => {length: number, offset: number, index: number}, // e.g. height, y,
renderItem?: ?RenderItemType<Item>,
ListItemComponent?: ?(React.ComponentType<any> | React.Element<any>),
},