Skip to content

Commit a0f26e3

Browse files
committed
chore: improve thread message list.
1 parent cd5e18d commit a0f26e3

File tree

1 file changed

+1
-1
lines changed
  • packages/uikit-react-native/src/components/ChatFlatList

1 file changed

+1
-1
lines changed

packages/uikit-react-native/src/components/ChatFlatList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const ChatFlatList = forwardRef<RNFlatList, Props>(function ChatFlatList(
3232
) {
3333
const { select } = useUIKitTheme();
3434
const contentOffsetY = useRef(0);
35+
// FIXME: inverted list of ListEmptyComponent is reversed {@link https://github.com/facebook/react-native/issues/21196#issuecomment-836937743}
3536
const inverted = useRef(props.inverted ?? Boolean(props.data?.length));
3637

3738
const _onScroll = useFreshCallback<NonNullable<Props['onScroll']>>((event) => {
@@ -78,7 +79,6 @@ const ChatFlatList = forwardRef<RNFlatList, Props>(function ChatFlatList(
7879
keyboardShouldPersistTaps={'handled'}
7980
indicatorStyle={select({ light: 'black', dark: 'white' })}
8081
{...props}
81-
// FIXME: inverted list of ListEmptyComponent is reversed {@link https://github.com/facebook/react-native/issues/21196#issuecomment-836937743}
8282
inverted={inverted.current}
8383
ref={ref}
8484
onEndReached={onTopReached}

0 commit comments

Comments
 (0)