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

implemented the snapshot query fix from #19 issue #27

Closed ChinmayMhatre closed 3 years ago

ChinmayMhatre commented 3 years ago

I tried the fix for the snapshot query suggested in the issue #19 I suggest implementing this to avoid further confusion

ChinmayMhatre commented 3 years ago

@sykhan88 @SimCoderYoutube could you take a look at this?

ChinmayMhatre commented 3 years ago

well, i think you need to see that const uid = snapshot.docs[0].ref.path.split('/')[1]; when i use this code then its works for me 🧐

Yeah I have tried this . But I ran into problems when there are more than one posts . It only looks at the first one for some reason. The one I suggested worked for all of them hence the pr

gxanshu commented 3 years ago

ok, i checked your code its work for me 👍

SimCoderYoutube commented 3 years ago

I believe this problem has to do with the firebase version each one is using, could you make sure you update the package.json to match the version where this solution works?

Thank you 😊

ChinmayMhatre commented 3 years ago

I believe this problem has to do with the firebase version each one is using, could you make sure you update the package.json to match the version where this solution works?

Thank you 😊

Yes sure ! I'll update it

SimCoderYoutube commented 3 years ago

Thank you chinmayMhatre!

Accepting your PR 😊