iamvucms / react-native-instagram-clone

A React Native app - Clone Instagram mobile app
967 stars 318 forks source link

Error Get Story List Failed #14

Open kaybeeomm opened 3 years ago

kaybeeomm commented 3 years ago

Screen Shot 2021-02-03 at 11 26 04 PM Thanks for sharing your code; really appreciate I was able to compile the code and run it but I'm getting the error in the attachment; it's not able to get the Story list and also getting error can get information. Could you please help out on why I'm getting those error? Note; I'm using the data from your database dump for firebase. Screen Shot 2021-02-03 at 11 08 11 PM Screen Shot 2021-02-03 at 11 09 38 PM

iamvucms commented 3 years ago

Hi, You can log the error in catch of get post action to see the bug or show here

johnathan-co commented 3 years ago

Hello @iamvucms,

I am receiving the same issue as @kaybeeomm. When I imported your backup.json, it did not import any data for the firebase ("realtime") database. There is a function in the firebase database page to 'export json', and then we should be able to import that json. Could you do that for us?

iamvucms commented 3 years ago

No It's just for importing firestore. not firebase realtime database

johnathan-co commented 3 years ago

Correct @iamvucms. Could you also export the json for the firebase realtime database for us?

vijayparmar123 commented 3 years ago

Hey @iamvucms

I am also facing the same problem as above, unable to fetch Post List and Story List, How can we configure firebase database for this project? we have to create new one and configure or are you providing it anywhere in repo?

hha00m commented 2 years ago

This is can be easily fixed by adding an index in firebase for (stories and posts) and fields

userId Ascending, create_at Descending