Skip to content

Commit ddfaec8

Browse files
committed
fix: flashlist import in expo app
1 parent fbb0bd8 commit ddfaec8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/ExpoMessaging/app/channel/[cid]/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from 'react';
22
import { SafeAreaView, View } from 'react-native';
3-
import { Channel, MessageInput, MessageListFlashList } from 'stream-chat-expo';
3+
import { Channel, MessageInput, MessageFlashList } from 'stream-chat-expo';
44
import { Stack, useRouter } from 'expo-router';
55
import { AuthProgressLoader } from '../../../components/AuthProgressLoader';
66
import { AppContext } from '../../../context/AppContext';
@@ -45,7 +45,7 @@ export default function ChannelScreen() {
4545
thread={thread}
4646
>
4747
<View style={{ flex: 1 }}>
48-
<MessageListFlashList
48+
<MessageFlashList
4949
onThreadSelect={(thread) => {
5050
setThread(thread);
5151
router.push(`/channel/${channel.cid}/thread/${thread.cid}`);

package/src/components/MessageList/MessageFlashList.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,12 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
11881188

11891189
export type MessageFlashListProps = Partial<MessageFlashListPropsWithContext>;
11901190

1191+
/**
1192+
* This is a @experimental component.
1193+
* It is implemented using @shopify/flash-list package to optimize the performance of the MessageList component.
1194+
* The implementation is experimental and is subject to change.
1195+
* Please feel free to report any issues or suggestions.
1196+
*/
11911197
export const MessageFlashList = (props: MessageFlashListProps) => {
11921198
const { closePicker, selectedPicker, setSelectedPicker } = useAttachmentPickerContext();
11931199
const {

0 commit comments

Comments
 (0)