I'm having a problem finding how to change the color of the date.

I want to change the color to black.
Yes you can easy do that with the GiftedChat.
First you will need to import the Day component
import {GiftedChat, Day} from 'react-native-gifted-chat';
then you have to provide the renderDay prop for the GiftedChat and there you will pass a function like that:
renderDay(props) {
return <Day {...props} textStyle={{color: 'red'}}/>
}
<GiftedChat
messages={this.state.messages}
onSend={messages => this.onSend(messages)}
user={{
_id: 1,
}}
renderDay={this.renderDay}
/>
The renderDay function just returns the normal component with the prop textStyle, there you will pass an object that specifies the textStyle of the day. Have a look also at the src folder of the GiftedChat and the Day.js file for more information.
It worked !!!
Thanks for the quick reply @mafiusu .
It Worked for me too, Thank you guys!!!!!
I am new in react native anyone explain
renderDay(props) {
return
}<GiftedChat messages={this.state.messages} onSend={messages => this.onSend(messages)} user={{ _id: 1, }} renderDay={this.renderDay} />what is means {...props}
It means that we are spreading all the props to Day component in order to keep the behavior and change only the desired one e.g textColor
Most helpful comment
Yes you can easy do that with the GiftedChat.
First you will need to import the Day component
import {GiftedChat, Day} from 'react-native-gifted-chat';then you have to provide the renderDay prop for the GiftedChat and there you will pass a function like that:
The renderDay function just returns the normal component with the prop textStyle, there you will pass an object that specifies the textStyle of the day. Have a look also at the src folder of the GiftedChat and the Day.js file for more information.