How sohelislamimran/expo-in-app-updates works
expo-in-app-updates exposes a JavaScript API for checking store versions and starting native update flows. The main workflow is a JS caller invoking checkForUpdate or checkAndStartUpdate, then dispatching to the platform module: Android uses Play Core for availability, flexible/immediate flows, install events, and store fallback; iOS looks up the App Store listing and presents its product sheet or opens the App Store app. Web reports no updates. Relationships are shown only where supported by excerpts or README; native service details are documented but not independently sampled beyond the provided source excerpts.
Main entry points: index.ts Public API · ExpoInAppUpdatesModule.swift iOS module · ExpoInAppUpdatesModule.ts Native bridge · ExpoInAppUpdatesModule.kt Android module
Components 13
JavaScript API
- Public API
src/index.ts - Update types
src/ExpoInAppUpdates.types.ts - Native bridge
src/ExpoInAppUpdatesModule.ts
Android updates
- Android module
android/src/main/java/expo/modules/inappupdates/ExpoInAppUpdatesModule.kt - Google Play
- Play Store fallback
iOS updates
- iOS module
ios/ExpoInAppUpdatesModule.swift - App Store lookup
ios/AppStoreLookup.swift - iTunes Search API
- StoreKit product sheet
- App Store app
Web fallback
- Web module
src/ExpoInAppUpdatesModule.web.ts
Other components
- Application caller
Connections 12
- Application caller → Public API: calls
README.md - Public API → Native bridge: delegates
src/index.ts - Public API → Update types: exposes types
src/index.ts - Native bridge → Android module: dispatches
- Native bridge → iOS module: dispatches
- Public API → Web module: uses on web
- Android module → Google Play: queries and starts
android/src/main/java/expo/modules/inappupdates/ExpoInAppUpdatesModule.kt - Android module → Play Store fallback: redirects on failure
android/src/main/java/expo/modules/inappupdates/ExpoInAppUpdatesModule.kt - iOS module → App Store lookup: fetches listing
ios/ExpoInAppUpdatesModule.swift - App Store lookup → iTunes Search API: looks up listing
ios/AppStoreLookup.swift - iOS module → StoreKit product sheet: presents product
ios/ExpoInAppUpdatesModule.swift - iOS module → App Store app: opens fallback
ios/ExpoInAppUpdatesModule.swift