当前位置: 代码迷 >> 综合 >> react-native Text 文字垂直居中
  详细解决方案

react-native Text 文字垂直居中

热度:42   发布时间:2024-02-07 16:26:04.0
import {Platform} from 'react-native';label: {fontSize: OASize(11),color: OAColor.descText,height: OASize(20),textAlign: 'center',textAlignVertical: 'center',...Platform.select({ios: { lineHeight: OASize(20) },android: {}})
}

 

  相关解决方案