NativeScript / firebase

Modular Firebase 🔥 implementation for NativeScript. Supports both iOS & Android platforms for all Firebase services.
https://docs.nativescript.org/plugins/firebase-core.html
Apache License 2.0
52 stars 46 forks source link

firebase["ServerValue"].TIMESTAMP how do we use this in a new library #245

Open Maqsoodp opened 3 months ago

Maqsoodp commented 3 months ago

firebase["ServerValue"].TIMESTAMP how do we use this in a new library

guillemc23 commented 1 month ago

Hey @Maqsoodp, not sure if you still need this but you can use it as:

import { ServerValue } from "@nativescript/firebase-database";

const timestamp = ServerValue.timeStamp();