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

Method fromNative

packages/firebase-storage/index.android.ts:583–590  ·  view source on GitHub ↗
(storage: com.google.firebase.storage.FirebaseStorage)

Source from the content-addressed store, hash-verified

581 }
582
583 static fromNative(storage: com.google.firebase.storage.FirebaseStorage) {
584 if (storage instanceof com.google.firebase.storage.FirebaseStorage) {
585 const store = new Storage();
586 store._native = storage;
587 return store;
588 }
589 return null;
590 }
591
592 useEmulator(host: string, port: number) {
593 this.native.useEmulator(host === 'localhost' || host === '127.0.0.1' ? '10.0.2.2' : host, port);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected