question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customize MessageText help

See original GitHub issue

I have been trying to change the font and color of the message’s text. Here is my renderMessageText function.

  renderMessageText(props) {
    return (
      <MessageText textStyle={{fontSize: 18, fontWeight: 'bold', fontFamily: 'AvenirNext-Regular', color: 'lightgray'}} linkStyle={{fontSize: 18, color: 'green'}} />
    )
  },

It just has not been working. Am I missing something? Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
FaridSaficommented, Aug 2, 2016

0.0.3 contains a fix for ignored custom MessageText

Your code should now looks like

    renderMessageText(props) {
      const textStyle = {
        fontSize: 18, fontWeight: 'bold', fontFamily: 'AvenirNext-Regular', color: 'lightgray',
      };
      const linkStyle = {fontSize: 18, color: 'green'};
      return (
        <MessageText textStyle={{left: textStyle, right: textStyle}} linkStyle={{left: linkStyle, right: linkStyle}} {...props} />
      )
    },

Left and Right are for Received and Sent messages styles

1reaction
psgganeshcommented, Jun 13, 2017

@FaridSafi … Sorry this still gives me MessageText is undefined …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize Text Messages for Mass Personalized ...
The answer is custom text messages with personalized message text. ... Custom fields help you save info that's unique to individual contacts ...
Read more >
Change Required Message Text
If you wish to change the text of your required error messages, navigate to Tools > Text & Translations. Here, you can customize...
Read more >
Edit and format messages - Google AdMob Help
Editing message text · Click Privacy & messaging. · Click GDPR. · In the list of messages, click the name of the message...
Read more >
Customizing Tab and Message Text
I was just hoping you may be able to help with a simple text editing issue I'm facing. I am simply trying to...
Read more >
Set the font or text color for messages you send
For example, you can change the color of your message text or use the font Arial instead of the default Calibri. Click File...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found