-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
React v15: inline styles with fallbacks (eg: display: flex) do not work #131
Comments
I want to add that I am checking the missing "display: flex" using DOM dev tools, and if I add it by hand using inline styles element, it "works" (yeah it's weird to say "it works" for this case). |
After some digging, I found that the "bug" came from A change has just been pushed recently to Not sure why I am getting inline styles and not CSS tho. I didn't find anything clear enough in to "trigger" CSS (which should help in my case). |
display: "flex"
to the element styles
I think this is ok in 0.0.25. When I upgrade the prefixer I'll check that things are handled correctly. |
I'm running into the same issue. |
Don't use React 15 with [email protected]. It requires a peer dependency of React 0.0.14. |
This issue is pretty bad because React 15 has no way to handle fallback values now. It was an undocumented feature, but used by many styling libraries, and there is no alternative API yet. To unblock most browsers I'm going to drop all fallbacks and render with the standard value. Can work out how to extend browser support after that. |
React 15 has no way to handle fallback CSS values (for example, vendor prefixed 'display:flex' values) in inline styles. This patch drops all fallback values for inline styles at the cost of regressing browser support (those without standard flexbox support will not layout React Native components correctly). Fix necolas#131 Conflicts: package.json
Hi,
I am just starting with react-native-web and I am not using (yet?) the
AppRegistry
.I just configured the react-native alias to be able to start using some component.
I made a simple test with a
View
with childrens. This view is a navigation bar and I want to use flexbox.As you might notice, I specified
display: "flex"
forstyles.bar
since I was thinking it's missing. You mentioned in the doc that it should be the default (just like for facebook/css-layout), but I tried just in case. And even when adding this property, it was "ignored". I tried on Chrome and Firefox, same thing.Am I missing the "global" default css somehow?
The text was updated successfully, but these errors were encountered: