A litte weather app built with React Native, TypeScript and OpenWeatherAPI.
Report Bug/Request Feature
Table of Contents
I've been doing some React Native training and decided to build this little weather app based on Aman Mittal's tutorial.
I used one of the React Native project templates (could have chosen one that was more minimal in hindsight) and have updated or refactored some of the code from both the template and tutorial as I came across a couple of errors (e.g. navigator.geolocation
seems to be deprecated so I used expo-location
instead).
To get a local copy up and running follow these simple example steps.
- yarn
npm install --global yarn
- Get a free API Key at https://openweathermap.org/api
- Clone the repo
git clone https://github.com/HorrorOfPartyBeach/RN-Weather-App.git
- Install Yarn packages
yarn install
- Enter your API in
utils/WeatherAPIKey.js
const API_KEY = 'ENTER YOUR API';
- Aman Mittal's Weather App Tutorial
- I used this as the basis for my app