Add Firestore Timestamp Class
complete
Michael Jarecki
Use case: Specifically for setting or updating values in Firestore documents to proper Timestamp instances representing times other than the server's notion of 'now' (currently via the
firebase.firestore.FieldValue.serverTimestamp()
sentinel)Ideally, react-native-firebase would expose the same Timestamp API as the Google Cloud Node.js SDK:
It appears that Google's SDKs for both iOS and Android expose a Timestamp class, making it possible to have a cross-platform solution in react-native-firebase. See:
and
Thank you for your consideration.
Mike Diarmid
complete
Hey all, this has been implemented and tested pending the v5.3.0 release.
Thanks
David Buchan-Swanson
I think you can set timestamps by setting the field to a
Date
- I'm doing that and it seems to work as expected.Mike Diarmid
in progress
Mike Diarmid
planned