airbnb의 반응 네이티브지도를 사용하려고하지만 맵이 시뮬레이터에 표시되지 않습니다. 내 코드는 문제를 해결 한 다른 코드와 같지만 시뮬레이터는 빨간색 테두리가있는 빈 흰색 화면입니다. Mapview는 작동하지만 airbnb의 버전을 사용하고 싶습니다.React 네이티브 반응 네이티브지도 Mapview가 표시되지 않습니다.
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import MapView from 'react-native-maps';
export default class Haulr extends Component {
render() {
return (
<MapView
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
/>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
});
AppRegistry.registerComponent('Haulr',() => Haulr);
iOS 또는 Android? – Vkrm
이 문제를 해결할 수 있었습니까? 현재 같은 문제가 있습니다. ( –
찾았 음. https://medium.com/@suchydan/how-to-solve-google-play-services-version-collision-in-gradle-dependencies-ef086ae5c75f –