gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 10:14:04 24 4
gpt4 key购买 nike

基本上,我想在 View 元素中放置一个标签列表,如下所示。

PS:图片来自这里:https://css-tricks.com/snippets/css/a-guide-to-flexbox/ ) enter image description here

最佳答案

为此,您的父容器需要这些属性:

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

工作示例:https://rnplay.org/apps/sa5G-Q

关于css - react native : is it possible to achieve align-Item:flex-start style in React native?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37369282/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com