Text strings must be rendered within a <Text> component
See original GitHub issueHey guys. I have an issue for which I couldn’t find any information. Most likely it is not a bug with the library but something I am doing wrong, I just couldn’t figure out what can cause the problem. So The problem itself is that I receive a very strange error for which I will attach an image of my simulator.
That happens using SvgUri from the react-native-svg like this
<SvgUri
uri={silkUrl}
height={svgSilkHeight}
width={svgSilkWidth}
/>
Versions:
“react-native”: “0.63.4”, “react”: “16.13.1”, “react-native-svg”: “12.1.1”,
If some more info is needed I will add it. Thanks in advance 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
Invariant Violation: Text strings must be rendered within a ...
Invariant Violation: Text strings must be rendered within a <Text> component. 99% of cases will be caused by using conditional rendering ...
Read more >How to handle the error “Text strings must be rendered within ...
The first cause for the error is because of bad indentation. It is very necessary that each component is indented properly. The child...
Read more >Text strings must be rendered within a Text component
Hello learners,In this video I have explained why you get this error( Text strings must be rendered within a Text component ) and...
Read more >Text strings must be rendered within a <Text> component ...
Empty string scenario: ... Let's say one of your variables you're trying to use for conditional rendering evaluates to an empty state. Guess...
Read more >Text Strings must be rendered within a <Text> component
Invariant Violation: Text strings must be rendered within a component. This error is located at: in RCTView (at View.js:45) in View (at header....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The problem is not reproducible on version 11.0.1 of the library. At least for me downgrading to 11.0.1 worked. 😃
getting the same error for this svg: