我该如何在React-Native中重现flex-direction: row-reverse
? 当我在元素的样式中执行以下操作时:
flexDirection: 'row-reverse'
我遇到了错误:
无效的prop
flexDirection
,值为row-reverse
,被提供给StyleSheet
更新:他们在0.29.0版本中刚刚添加了它 :)我该如何在React-Native中重现flex-direction: row-reverse
? 当我在元素的样式中执行以下操作时:
flexDirection: 'row-reverse'
flexDirection
,值为row-reverse
,被提供给StyleSheet
更新:他们在0.29.0版本中刚刚添加了它 :)更新
自v29版本起,React Native在Android和iOS上提供了支持反向弹性方向的功能。 https://github.com/facebook/react-native/releases/tag/v0.29.0
原始回答
在React Native中没有row-reverse
或column-reverse
。
请参阅这个支持属性表格: