Optional
keyboardOptional
messageOptional
messageOptional
msg: FileMessage | UserMessageOptional
msg: FileMessage | UserMessageref object for FlatList of MessageList
Call the FlatList function asynchronously to scroll to bottom lazily to avoid scrolling before data rendering has been committed.
Optional
params: { Optional
animated?: booleanOptional
timeout?: numberCall the FlatList function asynchronously to scroll to index lazily. to avoid scrolling before data rendering has been committed.
Optional
params: { Optional
animated?: booleanOptional
index?: numberOptional
timeout?: numberOptional
viewFunction that scrolls to a message within a group channel.
{number} - The id of the message to scroll.
Optional
options: { {object} - Scroll options (optional).
Optional
focus{boolean} - Enable a shake animation on the message component upon completion of scrolling.
Optional
view{number} - Position information to adjust the visible area during scrolling. bottom(0) ~ top(1.0)
const { scrollToMessage } = useContext(GroupChannelContexts.MessageList);
const messageIncludedInMessageList = scrollToMessage(lastMessage.messageId, { focusAnimated: true, viewPosition: 1 });
if (!messageIncludedInMessageList) console.warn('Message not found in the message list.');
Generated using TypeDoc
Internal context for GroupChannel For example, the developer can create a custom header with getting data from the domain context