Im trying to add a button below the chat message. That means every chat bubble must have a button.
The button must be below the message. However, I am only getting the custom view i.e the button, on the top of the message. How do i fix this?
renderCustomView = props => (
isSessionId
onApprovePress={this.handleApproveButtonPress}
/>
);
Button should be below chat messages inside of the bubble.
I have found a solution that works for me:
Pass the prop renderMessageText and put your CustomView after the MessageText
renderMessageText(props) {
return (
<View>
<MessageText
{...props}
/>
<CustomBubbleView
{...props}
/>
</View>
);
}
the solution is just my implementation of the response given here: #391
Please, feel free to reopen if the solution proposed by @PolSendra does not work for you.
Thanks!
@PolSendra @brunocascio Works perfectly. Thanks alot :)
Most helpful comment
I have found a solution that works for me:
Pass the prop renderMessageText and put your CustomView after the MessageText
the solution is just my implementation of the response given here: #391