UNPKG

@dream11mobile/react-native-firebase

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

13 lines (11 loc) 461 B
import NativeError from '../../common/NativeError'; import type { SnapshotErrorInterface } from './firestoreTypes.flow'; import type { NativeErrorResponse } from '../../common/commonTypes.flow'; export default class SnapshotError extends NativeError implements SnapshotErrorInterface { constructor(nativeErrorMap: NativeErrorResponse) { super(nativeErrorMap.error); this.path = nativeErrorMap.path; this.appName = nativeErrorMap.appName; } }