From fcdf5b27ebc8c9ae82cf60104669c458f3758987 Mon Sep 17 00:00:00 2001 From: Maksym Tymchyk Date: Mon, 5 Nov 2018 11:19:53 +0200 Subject: [PATCH] Update declaration by adding Index for each element --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 372f7c7..41d5e5c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -8,7 +8,7 @@ export interface SuperGridProps { /** * 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.