Skip to content

Can't convert dates to Firestore timestamps #5966

Answered by andersonaddo
gospodinove asked this question in Q&A
Discussion options

You must be logged in to vote

I think here's a right way to use it:

timestamp: new firebase.firestore.Timestamp(123, 123456),


Looking at

// import firestore from '@react-native-firebase/firestore';
// firestore().X(...);
export default createModuleNamespace({
statics: FirestoreStatics,
version,
namespace,
nativeModuleName,
nativeEvents,
hasMultiAppSupport: true,
hasCustomUrlOrRegionSupport: false,
ModuleClass: FirebaseFirestoreModule,
});

which points to

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gospodinove
Comment options

Answer selected by gospodinove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants