Align Self
Override the parent's alignItems for a specific item.
The alignSelf property allows the default alignment (or the one specified by alignItems) to be overridden for individual flex items.
Values
| Value | Description |
|---|---|
Auto | Default. Inherits the parent's alignItems value. |
Stretch | Item stretches to fill the container's cross size. |
FlexStart | Item aligns to the start edge. |
FlexEnd | Item aligns to the end edge. |
Center | Item aligns in the center. |
Baseline | Item aligns based on its baseline. |
Example
Loading Preview…