Skip to content

A minimalist real-time weather app built with React Native using OpenWeatherMap API. Supports i18n and themes.

Notifications You must be signed in to change notification settings

XindiShang/weather-app

Repository files navigation

🌤️ Weather App

English | 中文

A lightweight and minimalist real-time weather app powered by the OpenWeatherMap API. Get instant weather updates based on your location, switch between different units, and enjoy seamless light/dark mode and multilingual support.

🚀 Features

  • 🌦️ Real-time Weather: Get current temperature, humidity, pressure, and wind speed.
  • 🌍 Location-based: Automatically fetches weather data based on your location.
  • 🔄 Unit Conversion: Switch between Celsius, Fahrenheit, and Kelvin.
  • 🌓 Theme Support: Light and dark mode available.
  • 🌐 Multilingual: Supports English and Chinese with easy switching.
  • 🔐 Secure: Environment variables managed with babel-plugin-dotenv-import.

📦 Installation

  1. Clone the repo:

    git clone https://github.com/XindiShang/weather-app.git
    cd weather-app
  2. Install dependencies:

    pnpm install
  3. Add your API key: Copy the example environment file and add your OpenWeatherMap API key:

    cp .env.example .env
  4. Run the app:

    pnpm start

🛠️ Tech Stack

  • React Native + Expo
  • OpenWeatherMap API
  • i18next for localization
  • babel-plugin-dotenv-import for environment variables

💬 Contact

Have questions or feedback? Reach out at shangxindi@gmail.com or find me on GitHub.

📄 License

This project is licensed under the MIT License.

About

A minimalist real-time weather app built with React Native using OpenWeatherMap API. Supports i18n and themes.

Topics

Resources

Stars

Watchers

Forks