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

"Objects are not valid as a React child" Error when using UI Kitten 5.0 #302

Closed
kokhoor opened this issue Jul 26, 2020 · 2 comments
Closed

Comments

@kokhoor
Copy link

kokhoor commented Jul 26, 2020

💬 Question

When trying to upgrade the UI Kitten library to UI Kitten 5.0, there is an error in the status-bar.component.tsx

The error is at the following line:
export const StatusBar = styled(StatusBarComponent);

Error message:
Error: Objects are not valid as a React child (found: object with keys ($$typeof, render, displayName)). If you meant to render a collection of children, use an array instead.

What should be the replacement for calling styled?

UI Kitten and Eva version

Package Version
@eva-design/eva 2.0.0
@ui-kitten/components 5.0.0
@nvtienanh
Copy link

I think this PR can help you #304

@kokhoor
Copy link
Author

kokhoor commented Aug 17, 2020

Great, thanks!

@kokhoor kokhoor closed this as completed Aug 17, 2020
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

No branches or pull requests

2 participants