An open API service indexing awesome lists of open source software.

https://github.com/rit3zh/react-native-weather-app

React Native Weather App provides real-time weather updates using the OpenWeather API and Firebase. It offers location-based forecasts, search functionality, and a weather history feature, all in a clean and user-friendly interface.
https://github.com/rit3zh/react-native-weather-app

open-weather-api react react-native react-native-weather typescript weather

Last synced: 4 months ago
JSON representation

React Native Weather App provides real-time weather updates using the OpenWeather API and Firebase. It offers location-based forecasts, search functionality, and a weather history feature, all in a clean and user-friendly interface.

Awesome Lists containing this project

README

        












Build Status


Build Status


Codecov


License


License






# Weather App

**React Native Weather** is an open-source, feature-rich weather application designed to provide accurate and up-to-date weather forecasts. With a clean and intuitive user interface, it ensures you always stay informed about the weather conditions in your area and beyond.

## Features 🚀

- **Fetch Default Location**: Automatically detects and displays weather for your current location.

- **Real-Time Weather Data**: Fetches weather updates in real time using the OpenWeather API.

- **Firebase Integration**: Leverages Firebase for real-time data synchronization, including history and search.

- **Search Locations**: Search for weather details of any city or location with instant results.

- **Real-Time History**: Automatically updates your weather search history in real time.

- **User-Friendly Interface**: Minimalistic and responsive design for a seamless experience.

## Screenshots

| | | |
| :-------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: |
| screen shot 2017-08-07 at 12 18 15 pm | screen shot 2017-08-07 at 12 18 15 pm | screen shot 2017-08-07 at 12 18 15 pm |
| screen shot 2017-08-07 at 12 18 15 pm | screen shot 2017-08-07 at 12 18 15 pm | screen shot 2017-08-07 at 12 18 15 pm |

## How to Use the App 🚀

To get started with the WeatherApp, follow these steps:

1. **Clone the Repository**
```bash
git clone https://github.com/rit3zh/react-native-weather-app
cd react-native-weather-app
```

2. **Set Up Environment Variables**
Create a `.env` file in the project root with the following content:

```env
EXPO_PUBLIC_USER_SECRET_KEY= #anything unique
EXPO_PUBLIC_WEATHER_API_KEY= #https://openweathermap.org/
EXPO_PUBLIC_WEATHER_CURRENT_API_KEY= #Not required
EXPO_PUBLIC_IP_KEY= #https://ipinfo.io
```

Replace ``, ``, ``, and `` with your own keys.

3. **Configure Firebase**
Set up Firebase by creating a `db/index.ts` file and adding the following code:

```typescript
import { initializeApp, FirebaseOptions } from "firebase/app";
import { getFirestore } from "firebase/firestore";

const firebaseConfig: FirebaseOptions = {
apiKey: "",
authDomain: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: "",
};

export const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
```

Replace placeholders like `` with your Firebase configuration.

4. **Install Dependencies**
Install all required packages:

```bash
npm install
```

5. **Run the Application**:

```bash
yarn start --reset-cache
```

6. **Explore the App**
- Access real-time weather updates.
- Search for weather in other cities.
- Check your weather search history.

---

### ⭐ Consider leaving a Star if you like this repository. ⭐