Livid
406.45D
549.49D
V2EX  ›  CSS

FlexBox Cheatsheet

  •  
  •   Livid ·
    PRO
    · Jun 5, 2017 via iPhone · 4250 views
    This topic created in 3447 days ago, the information mentioned may be changed or developed.
    9 replies  •  2017-06-07 10:03:36 +08:00
    grzhan
    grzhan
    Jun 5, 2017
    1
    最近写 React-native 确实老忘来着……
    adspe
    adspe
    Jun 5, 2017 via Android
    2
    @grzhan 现在 RN 对 flexbox 支持完全了吗。去年用的时候还不是支持的很好
    P233
    P233
    Jun 5, 2017
    3
    grzhan
    grzhan
    Jun 5, 2017
    4
    @adspe 不知道支持不完全指的是哪部分,因为我现在开发可能主要也就用下 flexDirection、alignItems、justifyContent 这些。如果有想要知道的支持情况的话,我今天可以试一下
    adspe
    adspe
    Jun 5, 2017
    5
    @grzhan flex-grow,flex-shrink 之类的呢
    adspe
    adspe
    Jun 5, 2017
    6
    @adspe 我也记不大的去年的项目用过啥了,记得当时想写一个布局发现 flex 支持不是很完全。好像是 0.1x 的版本
    xi_lin
    xi_lin
    Jun 5, 2017
    7
    @adspe 按理应该支持了,rn 底层的布局应该是抽成独立的 yoga 项目了,yoga 支持
    lylijincheng
    lylijincheng
    Jun 5, 2017
    8
    http://flexbox.help/
    grzhan
    grzhan
    Jun 7, 2017
    9
    @adspe 翻了下文档( https://facebook.github.io/react-native/docs/layout-props.html )这些都支持了 “ flexGrow, flexShrink, and flexBasis work the same as in CSS.” 之后实际写了体感下有没有区别。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1077 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 23:07 · PVG 07:07 · LAX 15:07 · JFK 18:07
    ♥ Do have faith in what you're doing.