react-native-maps: gray map after apk build

Viewed 1592

I have a RN app that uses react-native-maps. I was able to successfully render the Map in the Android and iOS Emulators, but when I build it out (using Expo), the app works but the Map renders as a Gray screen with the Google logo on the bottom left-hand corner.

  • I have an API key and have enabled all of the essential APIs in the Google Developer Console.
  • I have only tested this on a physical Android device.

So,

  1. What am I missing?
  2. Should I consider using Mapbox instead?

EDIT:

I did not add anything to a build.gradle or anything of the sort from the Android Studio end; just front-end stuff. Is this required?

2 Answers

I face same problem of greyed map, when use LocationView of react-native-location-view. Greyed Map resolved by Enable Maps SDK for Android. Follow as shown in enter image description here

Related