UNPKG

react-native-firebase-compiled

Version:

A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto

18 lines (16 loc) 526 B
import { getNativeModule } from '../../utils/native'; export default class IOSNotifications { constructor(notifications) { this.shouldAutoComplete = true; const nativeModule = getNativeModule(notifications); this._backgroundFetchResult = { noData: nativeModule.backgroundFetchResultNoData, newData: nativeModule.backgroundFetchResultNewData, failure: nativeModule.backgroundFetchResultFailure }; } get backgroundFetchResult() { return { ...this._backgroundFetchResult }; } }