📜  反应中心文本 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:05.078000             🧑  作者: Mango

代码示例1
Add textAlign: 'center' and it will center the text horizontally.

  headline: {
    textAlign: 'center', // <-- the magic
    fontWeight: 'bold',
    fontSize: 18,
    marginTop: 0,
    width: 200,
    backgroundColor: 'yellow',
  }