react native maps

Hello i am new to expo ,
i am using the react native maps and react native maps directions of the following versions :

“react-native-maps”: “^0.26.1”,
“react-native-maps-directions”: “^1.8.0”,

My app is working fine when i dont restrict my google maps API key , the map loads perfectly fine and the directions aswell , yet when i restrict the key as mentionned in the official docs , the directions don’t appear in testing mode and if i try building the app it just reboots when i go to the MapView
i have maps sdk for android api enabled and the directions api aswell.

i restricted my key as follows :
Application restriction : Android apps
New item :
(com.myapp)
(google fingerprint) <- received after building the app and doing expo fetch:android:hashes

I also added the api key to the package json
I receive this error :
This IP, site or mobile application is not authorized to use this API key]this-ip-site-or-mobile-application-is-not-authorized-to-use-this-api-key
Any help would be much appreciated
Edit:
The mapview and its parent element both have the styles of flex:1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.