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

Method fromNative

packages/firebase-core/index.android.ts:27–34  ·  view source on GitHub ↗
(native: com.google.firebase.FirebaseApp)

Source from the content-addressed store, hash-verified

25export class FirebaseOptions implements IFirebaseOptions {
26 _nativeApp: com.google.firebase.FirebaseApp;
27 static fromNative(native: com.google.firebase.FirebaseApp) {
28 if (native instanceof com.google.firebase.FirebaseApp) {
29 const opts = new FirebaseOptions();
30 opts._nativeApp = native;
31 return opts;
32 }
33 return null;
34 }
35
36 get native() {
37 if (!this._nativeApp) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected