r/reactnative • • Jan 03 '20

An app I built using react native

207 Upvotes

64 comments sorted by

View all comments

1

u/ThatSpookySJW Jan 03 '20

Are these stored in your db or are they using google's places api?

3

u/_rustafarian Jan 03 '20 edited Jan 03 '20

They are saved in my Postgres database and I'm using PostGIS to do geolcation calculations. I do however store the google place_id so I can link to them in Google maps.

1

u/ShamelessC Jan 03 '20

Are the images stored locally? The lazy loading is very well done, of course, but the images do take awhile to show up. I assume they're behind an API call? Is there any way to cache all the images in the user's zip code (for instance)?

2

u/_rustafarian Jan 03 '20

The images are loaded from the server. And I'm using https://github.com/DylanVann/react-native-fast-image which caches them internally. To get around the images loading slower, I could probably use smaller images. I'm currently using (600x400) I think. Also my connection isn't that great tbh

3

u/ShamelessC Jan 03 '20

It's good to test on a slow connection anyway because your users will often be on slow cellular connections.

Great work though. Lower resolution images would be a great addition for a new version.

1

u/goughjo Mar 28 '22

How do businesses get onto this platform? Can they manage their menu through the app? Can they sign up through the app?

Well done btw. Looks really good.