From 7e09e5dc05e823bfea0aa220e4fd002dba2ecb58 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 31 Mar 2022 14:23:57 -0300 Subject: [PATCH] PostList do not scroll to bottom after the first onEndReached (#6109) --- app/components/post_list/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/post_list/index.tsx b/app/components/post_list/index.tsx index 46095bbe25..81eaef571c 100644 --- a/app/components/post_list/index.tsx +++ b/app/components/post_list/index.tsx @@ -113,7 +113,7 @@ const PostList = ({ useEffect(() => { listRef.current?.scrollToOffset({offset: 0, animated: false}); - }, [channelId, listRef.current]); + }, [channelId]); useEffect(() => { const scrollToBottom = (screen: string) => { @@ -352,7 +352,6 @@ const PostList = ({ keyboardShouldPersistTaps='handled' keyExtractor={keyExtractor} initialNumToRender={INITIAL_BATCH_TO_RENDER + 5} - listKey={`postList-${channelId}`} ListFooterComponent={footer} maintainVisibleContentPosition={SCROLL_POSITION_CONFIG} maxToRenderPerBatch={10}