Flex direction: row-reverse in react-native

独自空忆成欢 提交于 2019-12-19 08:28:35

问题


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 value row-reverse supplied to StyleSheet

UPDATE: They just added it in version 0.29.0 :)


回答1:


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



来源:https://stackoverflow.com/questions/38406045/flex-direction-row-reverse-in-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!