V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
aiyov
V2EX  ›  React

ReactNative

  •  
  •   aiyov · 2018-01-30 23:52:35 +08:00 · 1856 次点击
    这是一个创建于 2269 天前的主题,其中的信息可能已经有所发展或是发生改变。

    reactnative 中 text 组件的 lineHeight 样式为什么不是高度居中的,而是偏下的,求解答?

    1 条回复    2018-01-31 09:51:05 +08:00
    FEontheway
        1
    FEontheway  
       2018-01-31 09:51:05 +08:00   ❤️ 1
    不知道,所以我都是外边套一层 view 然后用 justifyContent: 'center'居中
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5364 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:02 · PVG 17:02 · LAX 02:02 · JFK 05:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.