版权声明:本人原创,码字辛苦,整理代码更是辛苦,转发请说明原处https://blog.csdn.net/qq_37815596谢谢! https://blog.csdn.net/qq_37815596/article/details/88369247
- 天气查询
https://www.heweather.com/documents/api/v5/weather
- 天气预测,目前使用免费的接口只能预测三天
https://www.heweather.com/documents/api/v5/forecast
- 创建项目
react-native init Weather
- 定位学习网站:https://reactnative.cn/docs/0.49/geolocation/
- 最终代码文件夹如下所示
- 最后效果图
- 代码
github链接:https://github.com/MeiJunNa/weather