I want to check relevant user_id already exists in the user collection.
const snapShot = await FirebaseFirestore.instance.collection('user').document(user.uid).get();
if (snapShot.exists){
navigation.navigate('dashboard');
}
But the error message appear as
"[Unhandled promise rejection: ReferenceError: Can't find variable: FirebaseFirestore]"
I am doing this in React Native Expo App. Can anyone let me know about the solution?