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

Disable warning for certain styles #707

Closed
miguelocarvajal opened this issue Nov 8, 2017 · 4 comments
Closed

Disable warning for certain styles #707

miguelocarvajal opened this issue Nov 8, 2017 · 4 comments

Comments

@miguelocarvajal
Copy link

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
If a certain style is not supported by React Native, I get a warning in the browser. For example:

Warning: "transition" is not a valid style property.

What is the expected behavior?
In certain cases I am certain the stylesheet will not be passed to react-native's Stylesheet and will only be applied in a browser. So it would be nice to disable the warning in certain cases.

@necolas
Copy link
Owner

necolas commented Nov 8, 2017

In this case transition isn't supported and you should use the long-hand properties transitionDelay, transitionDuration, transitionProperty, and transitionTimingFunction as documented here

@miguelocarvajal
Copy link
Author

I should've caught that. Just what I needed.

Thanks! Love your work on this project!

@necolas
Copy link
Owner

necolas commented Nov 8, 2017

No problem. Thank you :)

@JoseFMP
Copy link

JoseFMP commented Mar 27, 2019

However, it happens for some certainly supported properties, i.e. #1308

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

3 participants