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
767 stars 299 forks source link

snapshot.ZE.path.segments is undefined #39

Closed AlazarG19 closed 2 years ago

AlazarG19 commented 2 years ago

the issue at 19 worked for me by using snapshot.docs[0].ref.path.split("/")[1] but i cant figure out this one

AlazarG19 commented 2 years ago

never mind found a solution by using const postId = snapshot.ref.path.split("/")[3] just had to remove the docs[0] prop