From 86d5529cfd0ce1310abd1983a1ca6f2b5c1a5f5f Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 19 Sep 2022 17:46:15 -0300 Subject: [PATCH] RoomView --- app/containers/message/index.tsx | 34 ++++++++++++++++---------------- app/views/RoomView/List/List.tsx | 22 ++++++++++----------- app/views/RoomView/index.tsx | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/app/containers/message/index.tsx b/app/containers/message/index.tsx index 39e236f98..452e807e8 100644 --- a/app/containers/message/index.tsx +++ b/app/containers/message/index.tsx @@ -91,23 +91,23 @@ class MessageContainer extends React.Component FlatList }>; +// export type TListRef = React.RefObject FlatList }>; -export interface IListProps extends FlatListProps { - listRef: TListRef; -} +export type IListProps = FlatListProps; const List = ({ listRef, ...props }: IListProps) => ( ( ref={listRef} keyExtractor={(item: any) => item.id} contentContainerStyle={styles.contentContainer} - style={styles.list} + // style={styles.list} inverted - removeClippedSubviews={isIOS} - initialNumToRender={7} + estimatedItemSize={150} + // removeClippedSubviews={isIOS} + // initialNumToRender={7} onEndReachedThreshold={0.5} - maxToRenderPerBatch={5} - windowSize={10} + // maxToRenderPerBatch={5} + // windowSize={10} {...props} {...scrollPersistTaps} /> diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 4b7213f80..0506a296e 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -1365,8 +1365,8 @@ class RoomView extends React.Component { if (showUnreadSeparator || dateSeparator) { return ( <> - {content} + {content} ); }