Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Text strings must be rendered within a <Text> component. #7

Closed
2 tasks done
ryanvanderpol opened this issue Jun 24, 2020 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@ryanvanderpol
Copy link

When tapping on a specific request in the list view I am unable to view the details. I receive the following error message:

Error: Text strings must be rendered within a <Text> component.

This is in a fairly new app using RN 0.62.2

Looking at the code in Header.tsx it seems it's rendering children into a <Text> element. Not exactly sure what's in children but that seems to be where the error occurs.

Screenshots
Screen Shot 2020-06-24 at 12 04 11 PM

Platform:

  • iOS
  • Android
@ryanvanderpol ryanvanderpol added the bug Something isn't working label Jun 24, 2020
@alexbrazier
Copy link
Owner

Hi @ryanvanderpol, thanks for reporting the issue. I think it was caused by a failing request returning an empty string causing an empty string to be rendered outside a Text component.

It should now be fixed in version 1.3.1. If there is still an issue the feel free to reopen or create another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants