I don't get any errors from my terminal or anything really, it simply crashes. The code works fine if you replace the tile url with an online one like "http://c.tile.openstreetmap.org/{z}/{x}/{y}.png" and it also works as expected with the downloaded tiles on iOS.
Additional links and references
I am trying to do something similar to what is done here and downloading tiles based on this tutorial (this part works great).
I'm sure it could be reproduced without expo if you are able to just place some downloaded tiles in any file:// location and reference it in the tiles array like above.
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
Android
@rnmapbox/maps
version10.1.6
Standalone component to reproduce
Observed behavior and steps to reproduce
If you allow the tiles to be downloaded, and reload or leave and re-enter this component, the app will crash on android (development build for expo).
Here are my relevant package versions (I'm using expo):
Expected behavior
Should just show the map tiles
Notes / preliminary analysis
I don't get any errors from my terminal or anything really, it simply crashes. The code works fine if you replace the tile url with an online one like "http://c.tile.openstreetmap.org/{z}/{x}/{y}.png" and it also works as expected with the downloaded tiles on iOS.
Additional links and references
I am trying to do something similar to what is done here and downloading tiles based on this tutorial (this part works great).