Update declaration by adding Index for each element

This commit is contained in:
Maksym Tymchyk
2018-11-05 11:19:53 +02:00
parent 0d35f892b6
commit fcdf5b27eb

2
index.d.ts vendored
View File

@@ -8,7 +8,7 @@ export interface SuperGridProps<ItemType = any> {
/**
* Function to render each object. Should return a react native component.
*/
renderItem: (item: ItemType) => JSX.Element;
renderItem: (item: ItemType, index: number) => JSX.Element;
/**
* Items to be rendered. renderItem will be called with each item in this array.