-
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
alignContent default value #2746
Comments
Yoga and RN have different defaults |
Also, I copied the example to the code sandbox: https://codesandbox.io/p/devbox/56ngyw |
Also, I dug the RN code a little bit and here are some proofs as well: |
Oh I see. I'll review a PR to match the RN default. Thanks |
Is there an existing issue for this?
Describe the issue
In
<View>
component'salignContent
style property,react-native-web
uses the CSS default value ofstretch
instead offlex-start
(according to Yoga layout engine that RN uses)Expected behavior
I guess it should be either fixed or at least documented.
Steps to reproduce
Test case
https://snack.expo.dev/@rosko/view-aligncontent-default-value
Additional comments
No response
The text was updated successfully, but these errors were encountered: