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
56 stars 50 forks source link

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

Open Maqsoodp opened 8 months ago

Maqsoodp commented 8 months ago

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

guillemc23 commented 6 months 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();