diff --git a/package.json b/package.json index d5b4aac..25d7438 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-infinite-virtualized-list", - "version": "0.1.13", + "version": "0.1.14", "homepage": "https://github.com/iwater/react-native-infinite-virtualized-list", "description": "A new InfiniteList that compose react-virtualized/InfiniteLoader with the react-native/VirtualizedList component, and a drop replacement component of react-native-gifted-listview", "main": "index.js", diff --git a/src/GiftedVirtualizedList.js b/src/GiftedVirtualizedList.js index 2139d7e..b5f9c27 100644 --- a/src/GiftedVirtualizedList.js +++ b/src/GiftedVirtualizedList.js @@ -59,8 +59,8 @@ export default class GiftedVirtualizedList extends React.PureComponent { })) } - renderItem = ({ item }) => { - return this.props.rowView(item) + renderItem = ({ item, index }) => { + return this.props.rowView(item, index) } render() {