Note that the issue happens if the user exists and kills the app and then opens it again or when cache is cleared. Clearing cache consistently leads to this issue of the black screen appearing if device is offline.
Expected behavior
The expected behavior is for mapbox to use the downloaded map styles when the user is offline.
Mapbox Implementation
Mapbox
Mapbox Version
11.7.0
React Native Version
0.73.2
Platform
iOS, Android
@rnmapbox/maps
version10.1.33
Standalone component to reproduce
Observed behavior and steps to reproduce
The issue is that I get a black screen when offline although there are map styles that were downloaded in the region. I followed the example in the documentation: https://rnmapbox.github.io/docs/examples/Map/OfflineExample.
Note that the issue happens if the user exists and kills the app and then opens it again or when cache is cleared. Clearing cache consistently leads to this issue of the black screen appearing if device is offline.
Expected behavior
The expected behavior is for mapbox to use the downloaded map styles when the user is offline.
Notes / preliminary analysis
No response
Additional links and references
I think that the issue that I'm facing is similar to the following issue from the MB Flutter repo: https://github.com/mapbox/mapbox-maps-flutter/issues/661