If Firestore is working inside Expo web?

var firebaseConfig = {

};

firebase.initializeApp(firebaseConfig)
var firestore = firebase.firestore();

const docRef = firestore.doc(“samples/sam”);

This works well with expo-ios but not for expo-web
and giving following error=> TypeError: firebase_app__WEBPACK_IMPORTED_MODULE_11_.firebase.firestore is not a function

Screenshot 2020-12-18 at 8.34.26 PM