jyhk jyhk - 11 months ago 68
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


To achieve this, your parent container needs these attributes:

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

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