Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29996

Render date of message above message in react-native-gifted-chat

$
0
0

Issue Description

Hello! When I render the message in a custom way, I can't show the creation date above the messages. How do I display this date? I tried to use the renderDay method, but it didn't work. Can anyone help? Pls

Steps to Reproduce / Code Snippets

I use renderMessage method to render the custom message:

...renderMessage(props) {    return (<Bubble        {...props}        wrapperStyle={{          left: {            backgroundColor: 'white',          },          right: {            backgroundColor: '#E8FAFF',          }        }}      />    );  }...render() {    return (<GiftedChat renderMessage={this.renderMessage.bind(this)}/>     );  }...

Additional Information

  • Nodejs version: 10.19.0
  • React version: 16.9.0
  • React Native version: 0.61.5
  • react-native-gifted-chat version: 0.13.0
  • Platform(s) (iOS, Android, or both?): Android

Viewing all articles
Browse latest Browse all 29996

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>