Hi, is there a way to show user name of the sender of a message on top of the first message from this user.
Something like that:

I manage to do it. Add renderBubble attribute to GiftedChat:
render() {
return (
<GiftedChat
messages={messagesList}
onSend={this.onSend}
renderBubble={this.renderBubble}
/>
);
}
Edit a renderBubble function and use utils function like isSameUser and isSameDay
renderBubble(props) {
if (props.isSameUser(props.currentMessage, props.previousMessage) && props.isSameDay(props.currentMessage, props.previousMessage)) {
return (
<Bubble
{...props}
/>
);
}
return (
<View>
<Text style={styles.name}>{props.currentMessage.user.name}</Text>
<Bubble
{...props}
/>
</View>
);
}
the result give something like that:

excuse me, I want to ask, how do you do the validation, here my case is
there is a user and admin, how do I handle it?
Most helpful comment
I manage to do it. Add renderBubble attribute to GiftedChat:
Edit a renderBubble function and use utils function like isSameUser and isSameDay
the result give something like that: