Two example apps demonstrating react-native-background-fetch:
react-native/— Bare React Native (RN 0.85+)expo/— Expo SDK 54+
Both apps share the same UI — a simple list that logs background-fetch events with timestamps.
cd example/react-native
npm install
# iOS
cd ios && pod install && cd ..
npx react-native run-ios
# Android
npx react-native run-androidcd example/expo
npm install
npx expo prebuild
npx expo run:ios
npx expo run:androidSee the Debugging Guide for how to simulate background-fetch events on iOS and Android.
Warning: When switching between the React Native and Expo example apps on Android, clean the build cache first to avoid stale codegen errors:
cd android && ./gradlew clean && cd ..