【问题标题】:Flex direction: row-reverse in react-nativeFlex 方向:react-native 中的 row-reverse
【发布时间】:2016-11-19 06:00:37
【问题描述】:

如何在 React-Native 中重现 flex-direction: row-reverse?当我在做元素风格时:

 flexDirection: 'row-reverse'

我遇到了错误:

提供给价值 row-reverse 的无效道具 flexDirection StyleSheet

更新:他们只是在 0.29.0 版中 added it :)

【问题讨论】:

    标签: css react-native flexbox react-native-flexbox


    【解决方案1】:

    更新

    从 v29 开始,React Native 在 Android 和 iOS 中提供了对反向弯曲方向的支持。 https://github.com/facebook/react-native/releases/tag/v0.29.0


    原始答案

    react-native 中没有 row-reversecolumn-reverse

    看到这个table of supported attributes

    https://github.com/facebook/css-layout

    【讨论】:

      猜你喜欢
      • 2019-03-09
      • 2015-07-07
      • 1970-01-01
      • 2020-09-01
      • 2017-12-27
      • 1970-01-01
      • 1970-01-01
      • 2021-05-06
      • 1970-01-01
      相关资源
      最近更新 更多