1
我想創建一個示例地圖project.It給我未知的插件錯誤。反應原生未知插件錯誤
下面是代碼:
import MapView from 'react-native-maps'
export default class mapTestProject extends Component {
render() {
return (
<MapView>
style = {styles.map}
showsUserLocation = {false}
followUserLocation = {false}
zoomEnabled = {true}
/>
);
}
}
const styles = StyleSheet.create({
map: {
height: 400,
marginTop: 80
},
});
AppRegistry.registerComponent('mapTestProject',() => mapTestProject);
感謝您的幫助,解決了我的問題 –