Flex方向:反向本地的行反向 [英] Flex direction: row-reverse in react-native
本文介绍了Flex方向:反向本地的行反向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何再现
https://github.com/facebook/css-layout
How can i reproduce flex-direction: row-reverse
in React-Native? When in element' style i'm doing:
flexDirection: 'row-reverse'
i'm getting error:
Invalid prop
flexDirection
of valuerow-reverse
supplied toStyleSheet
UPDATE: They just added it in version 0.29.0 :)
解决方案
UPDATE
As of v29, React Native provides support for reverse flex directions in Android and iOS. https://github.com/facebook/react-native/releases/tag/v0.29.0
ORIGINAL ANSWER
There is no row-reverse
or column-reverse
in react-native.
See this table of supported attributes:
https://github.com/facebook/css-layout
这篇关于Flex方向:反向本地的行反向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文