mirror of
https://github.com/zhigang1992/react-native-super-grid.git
synced 2026-01-12 22:50:58 +08:00
Update declaration by adding Index for each element
This commit is contained in:
2
index.d.ts
vendored
2
index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user