react-native-maps: initialRegion not working on Android
Tried rendering the example for initialRegion. Works fine on ios, but on android the map is zoomed out and centered on (0, 0)
<MapView
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
/>
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 16 (3 by maintainers)
@grigored no problem, that was my mistake so I had to fix it as fast as possible 😃
@christopherdro should be fixed now in https://github.com/airbnb/react-native-maps/pull/1563 , works for me now
https://github.com/airbnb/react-native-maps/commit/fd8dc08ffaa0fadbaa73d9e29033a16f808e318f Could be the cause of the issue. If you’re on 0.16.1 can you try 0.16.0 and see if it works?