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

Method fromNative

packages/firebase-firestore/index.ios.ts:176–183  ·  view source on GitHub ↗
(transaction: FIRTransaction)

Source from the content-addressed store, hash-verified

174 _native: FIRTransaction;
175
176 static fromNative(transaction: FIRTransaction) {
177 if (transaction instanceof FIRTransaction) {
178 const tran = new Transaction();
179 tran._native = transaction;
180 return tran;
181 }
182 return null;
183 }
184
185 delete<T extends DocumentData = DocumentData>(documentRef: DocumentReference): Transaction {
186 return Transaction.fromNative(this._native.deleteDocument(documentRef.native));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected