Skip to content

Commit

Permalink
Merge pull request #3 from lekenny/master
Browse files Browse the repository at this point in the history
 把 单行 的 index 暴露 给上一层页面
  • Loading branch information
iwater authored Mar 9, 2018
2 parents 64192e1 + 6377cf2 commit 962cd4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/GiftedVirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 962cd4d

Please sign in to comment.