Expo MapView is blank with only the google logo showing

I've followed every step on MapView docs, Maps SDK for Android is on at Google Cloud, heres my app.json:

"android": {
"googleServicesFile": "./google-services.json",
"adaptiveIcon": {
"foregroundImage": "./assets/app_logo.png",
"backgroundColor": "#FFFFFF"
},
"package": "PROJECT PACKAGE NAME",
"icon": "./assets/app_logo.png",
"userInterfaceStyle": "automatic",
"config": {
"googleMaps": {
"apiKey": "API KEY"
}
}
}

heres how i call MapView:

import MapView, { Circle, PROVIDER_GOOGLE  } from "react-native-maps";

<MapView
initialRegion={{
latitude: lat,
longitude: long,
latitudeDelta: 0.008,
longitudeDelta: 0.008,
}}
style={styles.map}
provider={PROVIDER_GOOGLE}
>

Expo go it works fine but at the preview apk build it only shows a blank map with the google logo at the bottom. Any help is really appreciated, thanks!

Posted Jul 19, 2023, 7:43 PM UTC

11
Loading comments…