MCPcopy Create free account
hub / github.com/NativeScript/firebase / constructor

Method constructor

packages/firebase-firestore/index.ios.ts:1344–1354  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

1342 _app: FirebaseApp;
1343
1344 constructor(app?: FirebaseApp) {
1345 if (app) {
1346 this._native = FIRFirestore.firestoreForApp(app.native);
1347 } else {
1348 if (defaultFirestore) {
1349 return defaultFirestore;
1350 }
1351 defaultFirestore = this;
1352 this._native = FIRFirestore.firestore();
1353 }
1354 }
1355
1356 static fromNative(store: FIRFirestore) {
1357 if (store instanceof FIRFirestore) {

Callers

nothing calls this directly

Calls 1

firestoreMethod · 0.65

Tested by

no test coverage detected