Weather App is a simple weather application built using React Native and TypeScript. The app provides current weather information using the OpenWeatherMap API.
- Fetch weather information by city name
- Display temperature, humidity, and weather descriptions
- Modern and stylish user interface
- Node.js (>= 14.x)
- React Native CLI
- Android Studio or Xcode (for iOS)
-
Clone the project:
git clone https://github.com/madtethys/havadurumu.git cd havadurumu
-
Install dependencies:
npm install
-
Install platform dependencies for Android or iOS:
Android:
npx react-native run-android
iOS (requires macOS):
npx react-native run-ios
You will need an OpenWeatherMap API key to fetch weather data.
-
Get your API key from OpenWeatherMap.
-
Add your API key to the
API_KEY
variable in theApp.tsx
file:const API_KEY = 'YOUR_API_KEY';
- After launching the app, enter a city name in the input field.
- Press the "Get Weather" button to display the weather information.
- App.tsx: Main application component. Takes city input and makes API requests.
- components/Weather.tsx: Component that displays weather data.
- styles: Application style files.
- React Native: Framework for mobile app development.
- TypeScript: Provides static type checking and safer code.
- Axios: Used for making HTTP requests.
- OpenWeatherMap API: API providing weather data.
- Start the development mode with
npm start
. - You can live reload the app to see code changes on the device.
This project is licensed under the Apache License 2.0. For details, see the LICENSE file.