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:
Родитель
7a2e83dba5
Коммит
43ff9da68d
|
@ -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>),
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче