File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
examples/ExpoMessaging/app/channel/[cid]
package/src/components/MessageList Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11import React , { useContext } from 'react' ;
22import { SafeAreaView , View } from 'react-native' ;
3- import { Channel , MessageInput , MessageListFlashList } from 'stream-chat-expo' ;
3+ import { Channel , MessageInput , MessageFlashList } from 'stream-chat-expo' ;
44import { Stack , useRouter } from 'expo-router' ;
55import { AuthProgressLoader } from '../../../components/AuthProgressLoader' ;
66import { 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 } ` ) ;
Original file line number Diff line number Diff line change @@ -1188,6 +1188,12 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
11881188
11891189export 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+ */
11911197export const MessageFlashList = ( props : MessageFlashListProps ) => {
11921198 const { closePicker, selectedPicker, setSelectedPicker } = useAttachmentPickerContext ( ) ;
11931199 const {
You can’t perform that action at this time.
0 commit comments