From 71654ccfe9b178dfb49afd30584f5bf06d1bc49c Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 9 Jan 2018 17:46:50 -0300 Subject: [PATCH] fix custom_section_list keyExtractor --- app/components/custom_section_list.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/components/custom_section_list.js b/app/components/custom_section_list.js index 3831ab407..7bab038e5 100644 --- a/app/components/custom_section_list.js +++ b/app/components/custom_section_list.js @@ -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,