Skip to content

Commit 962cd4d

Browse files
authored
Merge pull request #3 from lekenny/master
把 单行 的 index 暴露 给上一层页面
2 parents 64192e1 + 6377cf2 commit 962cd4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-infinite-virtualized-list",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"homepage": "https://github.com/iwater/react-native-infinite-virtualized-list",
55
"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",
66
"main": "index.js",

src/GiftedVirtualizedList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export default class GiftedVirtualizedList extends React.PureComponent {
5959
}))
6060
}
6161

62-
renderItem = ({ item }) => {
63-
return this.props.rowView(item)
62+
renderItem = ({ item, index }) => {
63+
return this.props.rowView(item, index)
6464
}
6565

6666
render() {

0 commit comments

Comments
 (0)