[APP-720] Paginate custom feeds (#1030)

* paginate custom feeds

* Fix loading state bug

* DRY code up
This commit is contained in:
Ansh 2023-07-21 15:39:06 -07:00 committed by GitHub
parent bf00d49863
commit bb99a234e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 5 deletions

View file

@ -85,6 +85,7 @@ export const DiscoverFeedsScreen = withAuthRequired(
renderItem={renderItem}
initialNumToRender={10}
ListEmptyComponent={renderListEmptyComponent}
onEndReached={() => feeds.loadMore()}
extraData={feeds.isLoading}
/>
</CenteredView>