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 (26 loc) 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DOCUMENT_ID = exports.default = void 0; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * * FieldPath representation wrapper */ /** * @class FieldPath */ class FieldPath { constructor(...segments) { _defineProperty(this, "_segments", void 0); // TODO: Validation this._segments = segments; } static documentId() { return DOCUMENT_ID; } } exports.default = FieldPath; const DOCUMENT_ID = new FieldPath('__name__'); exports.DOCUMENT_ID = DOCUMENT_ID;