-
Notifications
You must be signed in to change notification settings - Fork 829
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
Objects are not valid as a react Child error #8
Comments
@davvit this issue was automatically closed because it did not follow our rules: IMPORTANT: Please use the following link to create a new issue: https://www.creative-tim.com/new-issue/soft-ui-react-native **If your issue was not created using the app above, it will be closed immediately.** Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit: 👉 https://www.creative-tim.com/bundles 👉 https://www.creative-tim.com |
@davvit From what I see all the texts are rendered with
|
I am in a JS project so I converted the control to JS version..(removed types etc). If I didnt do the JSON.stringify I get the 'objects are not valid as react child' error... |
@hetmann this seems to solve the issue for now.
|
Im facing the following issue on Text component. The error is
Objects are not valid as React Child....
and its because of how the children prop is rendered in that controller. Its seems fine to me but not sure why its throwing error. Hoping someone can find the issue here.
Text.js
I have tried
{props.children}
here but same result.{JSON.stringify(props.children)}
renders the strings with quotes around them so i know the text is coming through.On the second image(using
{JSON.stringify(props.children)}
) , You can see the brand text is actually an object hence the error. Is the brand name usage of the control wrong or is there some other issue here?soft-ui-react-native/src/components/Text.tsx
Line 206 in f596249
The text was updated successfully, but these errors were encountered: