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

34 lines (28 loc) 605 B
/** * * DocumentChange representation wrapper */ import DocumentSnapshot from './DocumentSnapshot'; /** * @class DocumentChange */ export default class DocumentChange { constructor(firestore, nativeData) { this._document = new DocumentSnapshot(firestore, nativeData.document); this._newIndex = nativeData.newIndex; this._oldIndex = nativeData.oldIndex; this._type = nativeData.type; } get doc() { return this._document; } get newIndex() { return this._newIndex; } get oldIndex() { return this._oldIndex; } get type() { return this._type; } }