-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map can not show on Android #684
Comments
I had same problem before and I resolved it by changing the styles to the following. const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
justifyContent: 'flex-end',
alignItems: 'center'
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0
}
}); Also, if you see Google logo in the bottom and the map is blank, then your API key is wrong. |
I finally solved the problem by adding in
So the completely code is below
|
@spksoft many thanks bro, it helped me :D . |
Or if you can't, let me know and I'll do it |
Fix issue react-native-maps#684 (blank white map)
Thanks @spksoft !! After many hours trying different stuff, this is the one that worked!! |
@spksoft solution works. Thanks! |
@spksoft Have you integrate map view in existing android native project I am adding airbnb map view to existing android native application. I am using RN 0.40 and react-native-maps 0.13.0. after the react-link commands. Then android always have the Warning: and getting empty map with red border Here is complete code |
Look @GarimaMathur Just You have to Install Co-coapods and After, in react-native-maps module you Must Drag on Air maps file to Xcode After that You are follow this Procedure like as attached below... In your project's Build Settings > Header Search Paths, double click the value field. In the popup, add $(SRCROOT)/../node_modules/react-native-maps/ios/AirMaps and change non-recursive to recursive. (Dragging the folder node_modules/react-native-maps/ios/AirMaps/ into your project introduces duplicate symbols. We should not do it.) |
I have fixed by install react native link and install google play service in my android studio |
#import <React/RCTBundleURLProvider.h> in AppDelegate.m in Xcode, give this error 'React/RCTBundleURLProvider.h' file not found. |
@zengyanzi how Can u Install Google Play Services in your android studio Can you Explain step by step procedure |
I Need to run On Android Emulator |
@lavarajallu https://zengyanzi.github.io/2017/04/20/React-Native-Google-Map/ |
From the beginning this is what I did:
In Case Of Error It works for me, I hope it helps someone in the future. |
Thank you, You helped me a lot! |
I I'm having this problem in Android only in release Bundle.
*My map shows all white, with no Google logo in bottom left corner. |
I followed the Installation Guide, did link by using rnpm link and tried to search error log below to check if 'rnpm link' can link correctly following by the Installation Guide, that is correct and it works on iOS. But it doesn't work on Android.
The text was updated successfully, but these errors were encountered: