Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose renderTypingIndicator and handleOnScroll which are already pas… #2565

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

NoodleOfDeath
Copy link
Contributor

address the need for this patch

These properties are already passed to the underlying MessageContainer component, so might as well expose them to the developer

@@ -66,7 +66,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context'

dayjs.extend(localizedFormat)

export interface GiftedChatProps<TMessage extends IMessage = IMessage> {
export interface GiftedChatProps<TMessage extends IMessage = IMessage> extends Partial<Omit<MessageContainer<TMessage>, 'scrollToBottom'>> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to omit scrollToBottom because of the name collision.. don't want to add a breaking change by renaming this

@@ -148,6 +150,8 @@ export default class MessageContainer<
}

renderTypingIndicator = () => {
if (this.props.renderTypingIndicator)
return this.props.renderTypingIndicator()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exposes renderTypingIndicator to devs

@kesha-antonov kesha-antonov merged commit e34a141 into FaridSafi:master Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants