Skip to content

A React Native app with a Swift-based iOS Widget Extension that shows live weather updates and supports Live Activities.

Notifications You must be signed in to change notification settings

stavares843/weather-widget-ios

Repository files navigation

Weather Widget iOS (Expo + iOS Widget)

A React Native (Expo) application with an iOS Widget Extension that displays current weather information and supports Live Activity updates. The project includes a native iOS widget target integrated with the JS app via a small native bridge.

Features

  • Expo-managed React Native app
  • Current weather via API
  • Location-based weather lookup (with user permission)
  • iOS Widget Extension (WidgetKit) with shared data
  • Live Activity support (ActivityKit)

Setup

  • npm install
  • npx expo prebuild -p ios

Running the App

  • Development:
    • npx expo start
    • iOS Simulator: press i when Metro starts, or open in Expo Go
  • Prebuilt iOS (needed for widget):
    • npx expo prebuild -p ios
    • Open ios/WeatherApp.xcworkspace in Xcode
    • Select WeatherApp scheme and run on a simulator/device

Simulator Screenshot - iPhone 15 Pro - 2025-10-22 at 17 04 50 Simulator Screenshot - iPhone 15 Pro - 2025-10-22 at 17 00 51

Notes

  • WidgetDataModule.swift/.m exposes a module to JS for updating data accessible to the widget
  • withWidgetModule.js config plugin ensures the module + targets are added during prebuild

License

MIT

About

A React Native app with a Swift-based iOS Widget Extension that shows live weather updates and supports Live Activities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published