SimCoderYoutube / InstagramClone

Instagram Clone React Native Tutorial 2021 👨‍💻 I'll show you how you can do this in the simplest way and terms possible. By the end of this series you'll have learned how the big companies do it and will be able to do the same, you not only will be able to do this app, but you'll be able to put what you learn into your very own projects! In this series, we use React Native with Expo to quickly deploy the project. We use firebase for all our microservice needs like the auth system, database, storage, amongst others. firebase, redux, react native, javascript, expo. In this series, we'll use all of them and you'll learn them by doing an iconic app. Welcome to this Simcoder project and make an Instagram Clone!
Apache License 2.0
745 stars 294 forks source link

updated import to explicitly include firestore #21

Closed sykhan88 closed 3 years ago

sykhan88 commented 3 years ago

I was getting an error firebase.firestore() is not a function when running without redux as part of your tutorial around the 1hr timestamp. nothing was getting written to Firestore. had to explicitly include firestore as per the answer here. https://stackoverflow.com/questions/46636255/firebase-firestore-is-not-a-function-when-trying-to-initialize-cloud-firestore?noredirect=1&lq=1. This is because firebase core does not include the firestore library.

Yeghishe-Karapetyan commented 3 years ago

I was getting an error firebase.firestore() is not a function when running without redux as part of your tutorial around the 1hr timestamp. nothing was getting written to Firestore. had to explicitly include firestore as per the answer here. https://stackoverflow.com/questions/46636255/firebase-firestore-is-not-a-function-when-trying-to-initialize-cloud-firestore?noredirect=1&lq=1. This is because firebase core does not include the firestore library.

Friend can u say , what exactly did u do?

sykhan88 commented 3 years ago

Just included firebase/firestore import if you see the changes in the pull request

Yeghishe-Karapetyan commented 3 years ago

Just included firebase/firestore import if you see the changes in the pull request

Friend do you have discord, or Instagram, or Telegram, or Messenger, if yes please let me know, I have the same error but idk how can I add firebase/firestore, in my code or maybe it's another error, anyway thank you

sykhan88 commented 3 years ago

Hi, I would suggest github is the best way to correspond on this. This way the community can get involved as well and get to the bottom quicker. I have literally picked this up myself this weekend so wouldn't consider myself the go to person for answers. If you post your error in the issues for this repo, thats probably the best approach going forward.

sykhan88 commented 3 years ago

In terms how to import, my issue was originating from the register.js file, where i was using firestore. Just added the import on top. See attached exampleimage

Yeghishe-Karapetyan commented 3 years ago

In terms how to import, my issue was originating from the register.js file, where i was using firestore. Just added the import on top. See attached exampleimage

Thanks dude ;)