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.

Doesn't work for <Text> inside <View>

See original GitHub issue

This works with

<Shimmer>
    <Text>Hello</Text>
</Shimmer>

But for any other kind of views, it does not work. For example, if I have a bunch of texts inside a View, it won’t work.

<Shimmer>
    <View>
         <Text>Hello</Text>
         <Text>Hello</Text>
         <Text>Hello</Text>
    </View
</Shimmer>

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
rturkcommented, Sep 11, 2016

Hi @oblador any plans to work on this?

0reactions
bennyhobartcommented, Apr 8, 2018

I think if this is a limitation of the native libraries we’re binding to we can easily work around it by walking the node tree and wrapping all leaf nodes (children who have no children which are views) in the native component

Otherwise we could ask the native library authors if they could?

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native view auto width by text inside - Stack Overflow
I have a view and text inside. The view in auto width doesn't resize by inherit text element. How to fix that issue...
Read more >
Why My Text Is Going Off Screen? The Truth about React ...
This means that elements inside of a <Text> are no longer rectangles, but wrap when they see the end of the line. A...
Read more >
Fix text that isn't displaying properly - Google Chrome Help
Step 1: Use the text tuner · On your Windows computer, click the Start menu: Start menu or Start menu . · In...
Read more >
Fix data that is cut off in cells - Microsoft Support
Fix data that is cut off in cells by having the text wrap automatically, changing the alignment, decreasing the font size to fit...
Read more >
Text Doesn't Wrap at Margin in Draft View - Word Ribbon Tips
Text Doesn't Wrap at Margin in Draft View · Display the Word Options dialog box. · Click Advanced at the left side of...
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