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

Method fromNative

packages/firebase-firestore/index.ios.ts:279–286  ·  view source on GitHub ↗
(snapshot: FIRDocumentSnapshot)

Source from the content-addressed store, hash-verified

277 _native: FIRDocumentSnapshot;
278
279 static fromNative(snapshot: FIRDocumentSnapshot) {
280 if (snapshot instanceof FIRDocumentSnapshot) {
281 const ss = new DocumentSnapshot();
282 ss._native = snapshot;
283 return ss;
284 }
285 return null;
286 }
287
288 get exists(): boolean {
289 return this.native.exists;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected