jyhk jyhk - 2 years ago 174
CSS Question

React Native: is it possible to achieve align-Item:flex-start style in React native?

Basically, I want to place a list of tags inside a View element, like below.

PS: the picture is from here: https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
enter image description here

Answer Source

To achieve this, your parent container needs these attributes:

 flexDirection: 'row',
 flexWrap: 'wrap',

Working example: https://rnplay.org/apps/sa5G-Q

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download