fix custom_section_list keyExtractor

This commit is contained in:
Elias Nahum 2018-01-09 17:46:50 -03:00
parent 3da18b4dae
commit 71654ccfe9
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -88,13 +88,11 @@ export default class CustomSectionList extends React.PureComponent {
initialNumToRender: PropTypes.number
};
static defaultKeyExtractor = (item) => {
return item.id;
};
static defaultProps = {
showNoResults: true,
keyExtractor: CustomSectionList.defaultKeyExtractor,
keyExtractor: (item) => {
return item.id;
},
onListEndReached: () => true,
onListEndReachedThreshold: 50,
loadingText: null,