【问题标题】:Is justifyContent: 'space-evenly' supported in RN 0.60.5?RN 0.60.5 支持 justifyContent: 'space-evenly' 吗?
【发布时间】:2020-01-04 10:50:57
【问题描述】:

环境: “反应”:“16.8.6”, "react-native": "0.60.5",

【问题讨论】:

    标签: react-native justify


    【解决方案1】:

    查看似乎支持的文档:https://facebook.github.io/react-native/docs/layout-props#justifycontent

    支持的类型包括:

    enum('flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly')

    【讨论】:

    • 查看文档,它似乎有效。但事实并非如此。 ://
    • 您可以编辑上面的问题并在代码中提供更多详细信息吗?
    【解决方案2】:

    justifyContent: 'space-evenly' 从 RN 0.52.0 开始支持,因此在 0.60.5 中也支持。

    【讨论】:

    • 查看文档,它似乎有效。但事实并非如此。 ://
    猜你喜欢
    • 2020-10-05
    • 1970-01-01
    • 2022-12-04
    • 1970-01-01
    • 1970-01-01
    • 2021-07-10
    • 2018-05-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多