React Native中的Flex方向:row-reverse

6

我该如何在React-Native中重现flex-direction: row-reverse? 当我在元素的样式中执行以下操作时:

 flexDirection: 'row-reverse'

我遇到了错误:
无效的prop flexDirection,值为row-reverse,被提供给StyleSheet 更新:他们在0.29.0版本中刚刚添加了它 :)
2个回答

12

0
你可以使用flexDirection属性,并给它一个值'row-reverse'来实现新版本的效果。
示例代码:
flexDirection: 'row-reverse'

证明: 在这里输入图片描述

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接