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

23 lines (18 loc) 358 B
/** * @flow * FieldPath representation wrapper */ /** * @class FieldPath */ export default class FieldPath { _segments: string[]; constructor(...segments: string[]) { // TODO: Validation this._segments = segments; } static documentId(): FieldPath { return DOCUMENT_ID; } } export const DOCUMENT_ID = new FieldPath('__name__');