V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
aiyov
V2EX  ›  React

ReactNative

  •  
  •   aiyov · Jan 30, 2018 · 2811 views
    This topic created in 3013 days ago, the information mentioned may be changed or developed.

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

    1 replies    2018-01-31 09:51:05 +08:00
    FEontheway
        1
    FEontheway  
       Jan 31, 2018   ❤️ 1
    不知道,所以我都是外边套一层 view 然后用 justifyContent: 'center'居中
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   793 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:49 · PVG 05:49 · LAX 14:49 · JFK 17:49
    ♥ Do have faith in what you're doing.