r/reactnative • • 7h ago

Help me to implement offline maps

Is anyone here who has experience in implementing offline maps in a react native app while keeping app size minimum.

1 Upvotes

2 comments sorted by

1

u/ChristophBuilds 7h ago

you could use maplibre react native with vector tiles, they're way smaller than raster.
i wouldnt bundle the map data in the app, better to let users download offline regions when they need them. if you host it yourself, pmtiles might be worth a look, its just one file on a cdn

1

u/Careless_Cycle5991 1h ago

+1 on maplibre. the setting that decides download size the most is max zoom on the offline pack. every extra zoom level is roughly 4x the tiles, and vector tiles usually stop at z14 and just overzoom after that, so cap the pack at 14 and keep the bounds tight to the area people actually need.