Skip to content
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

Custom bubble style for sender and myself #33

Open
bhirmbani opened this issue Oct 25, 2018 · 3 comments
Open

Custom bubble style for sender and myself #33

bhirmbani opened this issue Oct 25, 2018 · 3 comments

Comments

@bhirmbani
Copy link

Hi, thank you for the cool simple library. Just wondering, can you point me to the implementation of custom bubble style for the sender. Example, if the background color of sender is other than gray and also a custom background color bubble for myself.

@boweihan
Copy link

boweihan commented Jul 2, 2019

https://github.com/brandonmowat/react-chat-ui/blob/master/src/ChatBubble/index.tsx

looks like this isn't supported at the moment

@Alec-Alameddine
Copy link

You can edit index.js and styles.js

For example styles.js:

pSender: {
        color: 'black',
        fontSize: 16,
        fontWeight: '300',
        margin: 0,
    },
pRecipient: {
    color: 'white',
    fontSize: 16,
    fontWeight: '300',
    margin: 0,
}

index.js:

React.createElement("p", { style: __assign({}, this.props.message.id === 0 ? styles_1.default.pSender : styles_1.default.pRecipient, text) }, this.props.message.message))));

@techinsider99
Copy link

Editing locally will not help if your project is built using pipelines on a devops platform, since node modules are installed at build time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants