Remove replies from the home feed (#259)

* Remove replies from the home feed (close #252)

* Increase the 'load more' threshhold
This commit is contained in:
Paul Frazee 2023-03-03 14:43:18 -06:00 committed by GitHub
parent b1fa1b633f
commit c2bfa111ac
2 changed files with 33 additions and 17 deletions

View file

@ -61,7 +61,7 @@ export const Feed = observer(function Feed({
if (feed.isEmpty) {
feedItems = feedItems.concat([EMPTY_FEED_ITEM])
} else {
feedItems = feedItems.concat(feed.feed)
feedItems = feedItems.concat(feed.nonReplyFeed)
}
}
return feedItems
@ -69,7 +69,7 @@ export const Feed = observer(function Feed({
feed.hasError,
feed.hasLoaded,
feed.isEmpty,
feed.feed,
feed.nonReplyFeed,
showWelcomeBanner,
isNewUser,
])
@ -171,6 +171,7 @@ export const Feed = observer(function Feed({
onScroll={onScroll}
onRefresh={onRefresh}
onEndReached={onEndReached}
onEndReachedThreshold={0.25}
removeClippedSubviews={true}
contentInset={{top: headerOffset}}
contentOffset={{x: 0, y: headerOffset * -1}}