react-native-maps
으로 빨간색 테두리 문제를 해결하려고합니다. 나는 모든 스타일링, 재설치/재 링크 및 my xcode 프로젝트에 에어 맵 추가를 모두 시도했지만, Google지도를 사용하려고하지 않습니다. 어떤 도움이라도 대단히 감사하겠습니다. 당신은 빨간색 테두리 대신 사용하려는 구성 요소를 얻을 때React Native Maps 빨간색 윤곽선 ios
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
View,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
...StyleSheet.absoluteFillObject,
width: width,
height: height,
},
});
export default class Map extends Component {
render(){
const { container, map } = styles;
return(
<View style={container}>
<MapView
style={map}
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
showUserLocation
/>
</View>
);
}
};
'빨간색 테두리 문제'란 무엇입니까? 지도가 실제로 빨간색 테두리로 렌더링되는지 또는 빈 빨간색 사각형 만 얻나요? –
빨간색 상자가있는 빈 상자 –