How should the modular and non modular synthax live with current react-native-firebase version ? #6220
-
Hello Guys, I am upgrading my firebase web version in a Do you have any plans to upgrade the synthaxe for react native firebase ? For instance this is an example of new synthax for firestore: const firestore = getFirestore(app);
const docRef = doc(firestore, 'doc/doc');
const docSnap = await getDoc(docRef);
console.log('docSnap', {
docSnap
})
await updateDoc(docRef, "lucas", 'lucasbis');
console.log('ending firebase store') This is the old synthax (non modular) used by react-native-firebase firestoreRemoteStore
.collection(RemoteStoreCollections.APPLICATION_VERSIONS)
.doc(env.ENV)
.onSnapshot(
(docSnapshot) => {
onValueChange(docSnapshot.get(RemoteStoreDocuments.MINIMAL_BUILD_NUMBER))
},
(error) => {
captureMonitoringError(error.message, 'firestore_not_available')
}
) Thanks in advance for clarifying ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
The two syntaxes are simply not compatible and you may not mix them. |
Beta Was this translation helpful? Give feedback.
The two syntaxes are simply not compatible and you may not mix them.
Until we support the v9 web syntax here (it is on the roadmap, but is not done yet...) you will have to use the firebsae-js-sdk either v8 or compat interfaces