From bb99a234e18e8582f391f6f2e93c9efa10f79cc3 Mon Sep 17 00:00:00 2001
From: Ansh <anshnanda10@gmail.com>
Date: Fri, 21 Jul 2023 15:39:06 -0700
Subject: [APP-720] Paginate custom feeds (#1030)

* paginate custom feeds

* Fix loading state bug

* DRY code up
---
 src/view/screens/DiscoverFeeds.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/view/screens/DiscoverFeeds.tsx')

diff --git a/src/view/screens/DiscoverFeeds.tsx b/src/view/screens/DiscoverFeeds.tsx
index 6b0f6b7fe..b6a6744db 100644
--- a/src/view/screens/DiscoverFeeds.tsx
+++ b/src/view/screens/DiscoverFeeds.tsx
@@ -85,6 +85,7 @@ export const DiscoverFeedsScreen = withAuthRequired(
           renderItem={renderItem}
           initialNumToRender={10}
           ListEmptyComponent={renderListEmptyComponent}
+          onEndReached={() => feeds.loadMore()}
           extraData={feeds.isLoading}
         />
       </CenteredView>
-- 
cgit 1.4.1

