Properties
Fragment
Fragment: { channel: GroupChannel; collectionCreator?: ((options?) => MessageCollection); enableMessageGrouping?: boolean; enableTypingIndicator?: boolean; flatListProps?: Omit<FlatListProps<SendbirdMessage>, "data" | "renderItem">; keyboardAvoidOffset?: number; messageListQueryParams?: MessageListQueryParamsType; onBeforeSendFileMessage?: OnBeforeHandler<FileMessageCreateParams>; onBeforeSendUserMessage?: OnBeforeHandler<UserMessageCreateParams>; onBeforeUpdateFileMessage?: OnBeforeHandler<FileMessageUpdateParams>; onBeforeUpdateUserMessage?: OnBeforeHandler<UserMessageUpdateParams>; onChannelDeleted: (() => void); onPressHeaderLeft: (() => void); onPressHeaderRight: (() => void); onPressMediaMessage?: ((message,
deleteMessage,
uri) => void); renderMessage?: ((props) => null | ReactElement<any, string | JSXElementConstructor<any>>); renderNewMessagesButton?: null | ((props) => null | ReactElement<any, string | JSXElementConstructor<any>>); renderScrollToBottomButton?: null | ((props) => null | ReactElement<any, string | JSXElementConstructor<any>>); searchItem?: { startingPoint: number; }; sortComparator?: ((a,
b) => number); } Type declaration
channel: GroupChannel
Optional
collectionCreator?: ((options?) => MessageCollection)
- (options?): MessageCollection
Parameters
Optional
options: Pick<UseGroupChannelMessagesOptions, "startingPoint">
Returns MessageCollection
Optional
enableMessageGrouping?: boolean
Optional
enableTypingIndicator?: boolean
Optional
flatListProps?: Omit<FlatListProps<SendbirdMessage>, "data" | "renderItem">
Optional
keyboardAvoidOffset?: number
Optional
onBeforeSendFileMessage?: OnBeforeHandler<FileMessageCreateParams>
Optional
onBeforeSendUserMessage?: OnBeforeHandler<UserMessageCreateParams>
Optional
onBeforeUpdateFileMessage?: OnBeforeHandler<FileMessageUpdateParams>
Optional
onBeforeUpdateUserMessage?: OnBeforeHandler<UserMessageUpdateParams>
onChannelDeleted: (() => void)
onPressHeaderLeft: (() => void)
onPressHeaderRight: (() => void)
Optional
onPressMediaMessage?: ((message, deleteMessage, uri) => void)
- (message, deleteMessage, uri): void
Parameters
message: FileMessage
deleteMessage: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
uri: string
Returns void
Optional
renderMessage?: ((props) => null | ReactElement<any, string | JSXElementConstructor<any>>)
- (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
props: {
bottomSheetItem?: BottomSheetItem;
channel: GroupChannel;
currentUserId?: string;
enableMessageGrouping: boolean;
focused: boolean;
isFirstItem: boolean;
message: SendbirdMessage;
nextMessage?: SendbirdMessage;
onLongPress?: (() => void);
onPress?: (() => void);
onPressParentMessage?: ((parentMessage) => void);
onShowUserProfile?: ((user, options?) => void);
prevMessage?: SendbirdMessage;
}
Optional
bottomSheetItem?: BottomSheetItem
channel: GroupChannel
Optional
currentUserId?: string
enableMessageGrouping: boolean
focused: boolean
isFirstItem: boolean
message: SendbirdMessage
Optional
nextMessage?: SendbirdMessage
Optional
onLongPress?: (() => void)
Optional
onPress?: (() => void)
Optional
onPressParentMessage?: ((parentMessage) => void)
- (parentMessage): void
Parameters
parentMessage: SendbirdMessage
Returns void
Optional
onShowUserProfile?: ((user, options?) => void)
- (user, options?): void
Parameters
user: Member | User
Optional
options: ShowOptions
Returns void
Optional
prevMessage?: SendbirdMessage
Returns null | ReactElement<any, string | JSXElementConstructor<any>>
Optional
renderNewMessagesButton?: null | ((props) => null | ReactElement<any, string | JSXElementConstructor<any>>)
Optional
renderScrollToBottomButton?: null | ((props) => null | ReactElement<any, string | JSXElementConstructor<any>>)
Optional
searchItem?: {
startingPoint: number;
}
Optional
sortComparator?: ((a, b) => number)
- (a, b): number
Parameters
a: SendbirdMessage
b: SendbirdMessage
Returns number
Header
Header: {
onPressHeaderLeft: (() => void);
onPressHeaderRight: (() => void);
shouldHideRight: (() => boolean);
}
Type declaration
onPressHeaderLeft: (() => void)
onPressHeaderRight: (() => void)
shouldHideRight: (() => boolean)
Input
Input: PickPartial<ChannelInputProps, "onPressUpdateUserMessage" | "shouldRenderInput" | "onPressSendUserMessage" | "onPressSendFileMessage" | "onPressUpdateFileMessage" | "SuggestedMentionList" | "AttachmentsButton", "inputDisabled">
MessageList
MessageList: Pick<ChannelMessageListProps<GroupChannel>, "channel" | "onTopReached" | "onBottomReached" | "onScrolledAwayFromBottom" | "currentUserId" | "enableMessageGrouping" | "searchItem" | "hasNext" | "onDeleteMessage" | "onResendFailedMessage" | "onPressMediaMessage" | "renderNewMessagesButton" | "renderScrollToBottomButton" | "renderMessage" | "messages" | "newMessages" | "scrolledAwayFromBottom" | "flatListProps"> & {
onResetMessageList: (() => Promise<void>);
onResetMessageListWithStartingPoint: ((startingPoint) => Promise<void>);
onUpdateSearchItem: ((searchItem?) => void);
}
Type declaration
onResetMessageList: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
onResetMessageListWithStartingPoint: ((startingPoint) => Promise<void>)
- (startingPoint): Promise<void>
Returns Promise<void>
onUpdateSearchItem: ((searchItem?) => void)
- (searchItem?): void
Parameters
Optional
searchItem: {
startingPoint: number;
}
Returns void
Provider
Provider: { channel: GroupChannel; enableTypingIndicator: boolean; groupChannelPubSub: PubSub<GroupChannelPubSubContextPayload>; keyboardAvoidOffset?: number; messages: SendbirdMessage[]; onUpdateSearchItem: ((searchItem?) => void); } Type declaration
channel: GroupChannel
enableTypingIndicator: boolean
Optional
keyboardAvoidOffset?: number
messages: SendbirdMessage[]
onUpdateSearchItem: ((searchItem?) => void)
- (searchItem?): void
Parameters
Optional
searchItem: {
startingPoint: number;
}
Returns void
SuggestedMentionList
SuggestedMentionList: SuggestedMentionListProps
Deprecated
Please use
messageListQueryParams
instead