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

Style prop value must be an object #21

Open
Deiveson opened this issue Mar 26, 2020 · 2 comments
Open

Style prop value must be an object #21

Deiveson opened this issue Mar 26, 2020 · 2 comments

Comments

@Deiveson
Copy link

I get this warning when I use the style prop

Style prop value must be an object

would it be correct to have a prop className?

@rubencm
Copy link

rubencm commented Jan 25, 2022

As documentation says for style property:

Appends the provided value to the switch button's class attribute. Use this to apply custom styles to the switch button.

I think it should have been called className or something. It happened to me the same when I tried to add inline styles.

@rubencm
Copy link

rubencm commented Jan 25, 2022

Some people have already tried to solve it in: #12 #28

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