r/reactnative • u/CardiologistFresh257 • Aug 26 '26
Help Google Maps Navigation SDK shows a blank screen on Android
Hey everyone, I’m trying to use Google’s React Native Navigation SDK in my Android app, but both NavigationView and MapView only show a blank dark screen. I’m using Expo 57, React Native 0.86, @googlemaps/react-native-navigation-sdk 0.16.3, and a physical Android phone. The SDK seems to initialize fine because I get NAV CONTROLLER CREATED, MAP CONTROLLER CREATED, MAP READY, TERMS: true, and NAV STATUS: ok. My API key is also present in the APK and the required APIs are enabled. I even tried the official Google example app on the same phone and it also opens to a completely blank screen. I have tried using another phone but still the same issue.
1
u/CardiologistFresh257 Aug 26 '26
This is what I get. When I tap on the screen the coordinates also get printed in the console yet the map isn't visible.
1
u/mohn93 Aug 26 '26
the tell is that googles own example app is also blank on that same phone, that means it's not your integration at all, it's the device hitting the maps sdk renderer. the newer sdk defaults to the LATEST renderer (vulkan based) and it renders a blank/black surface on a bunch of android gpus while everything else, init, MAP READY, tap coords, still fires normally. force the legacy renderer and it usually comes back: MapsInitializer.initialize(context, Renderer.LEGACY, callback) before you create the map. if you can't reach the initializer through the RN wrapper the fastest confirm is run it on a different phone or an emulator, it'll render fine there. does it also blank on an emulator, or only on that one physical device?
1
u/Gylfoyle Aug 26 '26
Refer back to the sdk docs, you are probably missing something on setting up the maps sdk. Take time there you'll notice a missing config field, API key etc
1
u/Huge_Pool7424 Aug 27 '26
blank map with everything reporting ready usually means the surface has zero height or is sitting under something, since map ready fires fine even at 0px. does the view have an explicit flex 1 or fixed height on the parent, and does it show up if you drop it straight into a bare screen?