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

Method fromNative

packages/firebase-firestore/index.ios.ts:976–983  ·  view source on GitHub ↗
(field: FIRFieldValue)

Source from the content-addressed store, hash-verified

974 _native: FIRFieldValue;
975
976 static fromNative(field: FIRFieldValue) {
977 if (field instanceof FIRFieldValue) {
978 const value = new FieldValue();
979 value._native = field;
980 return value;
981 }
982 return null;
983 }
984
985 static arrayRemove(elements: any[]): FieldValue {
986 return FieldValue.fromNative(FIRFieldValue.fieldValueForArrayRemove(elements.map((element) => element?.native || element)));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected