fix custom_section_list keyExtractor
This commit is contained in:
parent
3da18b4dae
commit
71654ccfe9
1 changed files with 3 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue