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.

Text strings must be rendered within a <Text> component

See original GitHub issue

If you pass children with prop title inside Swiper you will get this error Text strings must be rendered within a <Text> component. That because of this terrible line of code https://github.com/leecade/react-native-swiper/blob/master/src/index.js#L702

It is just so wrong solution to reserve prop title for a package assuming that people are not using prop title in items that they pass to to the package, because this is very common property name to use.

I face this crash once a half of year and every time forget about this terribly written line of code. Leaving this issue here in case I forget again, of anyone else face it

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:29
  • Comments:10

github_iconTop GitHub Comments

15reactions
ananeto48commented, Jan 16, 2020

Just saved my ass. Thank you for this 👍

2reactions
sintylapsecommented, Jun 23, 2020
Read more comments on GitHub >

github_iconTop 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
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 >
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 what ......
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