Layout Props
Props
-
-
marginHorizontalalignContent
+alignItemsalignSelfaspectRatioborderBottomWidth
@@ -33,7 +33,7 @@
marginmarginBottommarginEnd
-alignItems
+marginHorizontalmarginLeftmarginRightmarginStart
@@ -63,17 +63,6 @@
Reference
Props
-marginHorizontal
-Setting marginHorizontal has the same effect as setting both marginLeft and marginRight.
| Type | Required |
|---|---|
| number, ,string | No |
alignContent
alignContent controls how rows align in the cross direction, overriding the alignContent of the parent. See https://developer.mozilla.org/en-US/docs/Web/CSS/align-content for more details.
+
alignItems
+alignItems aligns children in the cross direction. For example, if children are flowing vertically, alignItems controls how they align horizontally. It works like align-items in CSS (default: stretch). See https://developer.mozilla.org/en-US/docs/Web/CSS/align-items for more details.
| Type | Required |
|---|---|
| enum('flex-start', 'flex-end', 'center', 'stretch', 'baseline') | No |
alignSelf
alignSelf controls how a child aligns in the cross direction, overriding the alignItems of the parent. It works like align-self in CSS (default: auto). See https://developer.mozilla.org/en-US/docs/Web/CSS/align-self for more details.
-
alignItems
-alignItems aligns children in the cross direction. For example, if children are flowing vertically, alignItems controls how they align horizontally. It works like align-items in CSS (default: stretch). See https://developer.mozilla.org/en-US/docs/Web/CSS/align-items for more details.
marginHorizontal
+Setting marginHorizontal has the same effect as setting both marginLeft and marginRight.
| Type | Required |
|---|---|
| enum('flex-start', 'flex-end', 'center', 'stretch', 'baseline') | No |
| number, ,string | No |