-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
how can change the color of the message box #640
Comments
|
I close this issue but create a FAQ in readme to refer it: https://github.com/FaridSafi/react-native-gifted-chat#questions |
I see what you're doing but where does that Bubble component come from and how do you import it? |
It's just the normal bubble from gifted-chat, but we just override the default styles
|
And if i wanna change the text color on bubble ? |
|
@hackrx i too need to change the shape of this box... |
@hackrx Did you find out how to change the shape of message box? |
Haven't tried, but it seems that you have to implement your own complete component, like the bubble itself: https://github.com/FaridSafi/react-native-gifted-chat/blob/master/src/Bubble.tsx 🤔 |
how do i change the entire chat background color, and foregrounnd color |
@capridigitalmedia This may be helpful
|
@capridigitalmedia |
Below is a more complete example on how to modify the styles of the text bubbles using functional components: import { GiftedChat, Bubble } from 'react-native-gifted-chat';
// ...Other imports
export default function ChatScreen() {
const renderBubble = props => {
return (
<Bubble
{...props}
textStyle={{
right: { color: 'blue', backgroundColor:'gray' },
}}
wrapperStyle={{
right: { backgroundColor: 'orange', },
left: { backgroundColor: 'red', },
}}
/>
)}
//... Other necessary code
return (
<GiftedChat
renderBubble={renderBubble}
// Other props..
/>
);
} |
I need to change the color of the message box from blue to orange
The text was updated successfully, but these errors were encountered: