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.

Possible to handle multiline for button with Icon and Text?

See original GitHub issue

I have a button as below

<Button
   iconLeft
   warning
   block
   large
   onPress={this.someFunc}
>
  <Icon name='ios-browsers' />
  <Text>{flexiTextWidth}</Text>
</Button>

I have the above button which working fine with fixed text, but if the content flexiTextWidth is very long then it will be cutted off. I’m wondering if there is any way where the button can support multi-line? I’ve tried to set multiline attribute at <Text> but doesnt seems to do anything. Wondering how we can handle the height depending on the text length?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
SupriyaKalghatgicommented, Aug 21, 2018

image

0reactions
isaaclemcommented, Aug 21, 2018

Any suggestion on how to handle the translated text with unknown text length? For now I’m manipulating the button height using manual calculation based on number of chars

Read more comments on GitHub >

github_iconTop Results From Across the Web

Icon next to multi-line button [duplicate] - html - Stack Overflow
My goal is to create a button that has multi-line text and an icon next to it that is centered for both lines....
Read more >
Elementor Multi Line Button with Icon (No Plugin) - YouTube
In this tutorial, I'll show you How to Create Multi Line Button with Icon just by using Elementor Page Builder 🔥🔥No additional plugin...
Read more >
How to make multi-line text in UIButton - Sarunw
To make a multi-line text in UIButton, you insert a new line character ( \n ) wherever you want in button title and...
Read more >
A multiline button is possible! - InfoWorld
A: The short answer: you can't do it without a bit of work on your part. The JButton does not intrinsically have the...
Read more >
[SOLVED] Create a button with multiple lines of text. - Wix.com
Having the possibility to make a button with multiple lines of text would fix my problem and also bring the possibility of square...
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