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

Method constructor

packages/firebase-storage/index.ios.ts:568–578  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

566 _app: FirebaseApp;
567
568 constructor(app?: FirebaseApp) {
569 if (app?.native) {
570 this._native = FIRStorage.storageForApp(app.native);
571 } else {
572 if (defaultStorage) {
573 return defaultStorage;
574 }
575 defaultStorage = this;
576 this._native = FIRStorage.storage();
577 }
578 }
579
580 static fromNative(storage: FIRStorage) {
581 if (storage instanceof FIRStorage) {

Callers

nothing calls this directly

Calls 1

storageMethod · 0.65

Tested by

no test coverage detected