React Native Flex Layout alignitems, aligncontent, alignself differences

Source: Internet
Author: User

In the process of using the flex layout to write the interface crazily, you can see that these properties are not the difference, or you have not seen one of the properties of the design of a layout of the brain, see here

Let's start with the alignitems that we know best.

Alignitems
Alignitems and Justifycontent are used in conjunction, the former is the side axis layout, the latter is the spindle layout, but the spindle specifically represents the horizontal or vertical axis depends on the Flexdirection property values

Several properties and effects of alignitems, as shown below

aligncontent

Aligncontent layout Effect and aligniems exactly the same, but the former only for multi-line item has effect, the latter for single-row, multi-line is effective

alignself

Alignself is distinguished from Alignitems, the former is defined within the item, its default value is auto, the value of the parent class Alignitems, if the value of the Alignself property is customized overrides the effect of the parent class

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.