1, 对于文字居中,

  文字用<Text>,对它的父元素用alignItems:'center'


2, 对于输入框中的文字居中,

  输入框占满,让文字从中间开始显示,输入框用textAlign:'center';不要对输入框的父元素用alignItems

3 API使用问题

  利用天气的API,需要有APIKEY,可通过注册得到,

   格式:http://api.openweathermap.org/data/2.5/weather?q=10001&units=imperial&APPID=f1c30863cb0a23ab3561c48cda1e98ba

  APPID最好放在后边,防止向openweathermap传值解析出问题

  我的账户存在邮箱

相关文章:

  • 2021-06-20
  • 2021-10-16
  • 2021-08-14
  • 2021-09-18
  • 2021-08-01
  • 2021-08-29
  • 2021-05-20
  • 2021-09-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-05-02
  • 2021-11-20
相关资源
相似解决方案