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:
parent
b1fa1b633f
commit
c2bfa111ac
2 changed files with 33 additions and 17 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue