title: Offline map in React Native Mapbox GL
body: <p>How to properly manage rendering map when device is offline?
  Official documentation (<a href="https://github.com/mapbox/react-native-mapbox-gl/blob/master/API.md#offline" rel="nofollow noreferrer">https://github.com/mapbox/react-native-mapbox-gl/blob/master/API.md#offline</a>) helped to get packs saved and being able to remove them, but trying to load component without network connection gives empty map. <code>Mapbox.initializeOfflinePacks()</code> is called in root component and offline packs may be seen and deleted from any point in app.</p>
  
  <p>Other link suggested in documentation (<a href="https://www.mapbox.com/help/mobile-offline/" rel="nofollow noreferrer">https://www.mapbox.com/help/mobile-offline/</a>) did not help.</p>
  
  <p>Versions: React Native 0.46.4, React Native Mapbox GL 5.2.0</p>
  
  <p><strong>Edit</strong>:
  This was a bug in our app. Latitude and longitude inside <code>bounds</code> argument passed to method <code>createPack</code> were swapped so pack was correctly downloaded but contained a map of region that was far beyond visible area at high zoom level and, due to its small size, invisible at wide zoom. </p>