Skip to content

Commit 4ac1d60

Browse files
justinhornergusgard
authored andcommitted
updated virtualizedCell.cellKey (#10)
updated virtualizedCell.cellKey to be a string instead of number
1 parent 3231777 commit 4ac1d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SwiperFlatList/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default class SwiperFlatList extends PureComponent {
148148
setTimeout(() => this._scrollToIndex(info.index, false));
149149
};
150150

151-
_keyExtractor = (item, index) => index;
151+
_keyExtractor = (item, index) => index.toString();
152152

153153
renderChildren = ({ item }) => item;
154154

0 commit comments

Comments
 (0)