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

RowItem - fix "Text strings must be rendered within a <Text> component" error when subtitle is empty string #260

Closed
wants to merge 1 commit into from

Conversation

gorogoroumaru
Copy link

@gorogoroumaru gorogoroumaru commented Aug 13, 2022

Summary

In RowItem, condition for displaying subtitle causes "Text strings must be rendered within a Text component" Error when subtitle is empty string.
This is because the condition uses subtitle itself and react native renders empty string when subtitle is empty.
I fixed the condition to use !!subtitle instead of subtitle.

@gorogoroumaru gorogoroumaru changed the title RowItem - fix Text strings must be rendered within Text component error when subtitle is empty string RowItem - fix "Text strings must be rendered within a <Text> component" error when subtitle is empty string Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant