我一直在尝试遵循这个https://github.com/airbnb/react-native-maps教程,我尝试了他们所说的所有内容,但在我的 android studio 模拟器上出现了空白屏幕。

我的代码:
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import MapView from 'react-native-maps';
export default class ReactNativeMaps extends Component {
render() {
const { region } = this.props;
console.log(region);
return (
<View style ={styles.container}>
<MapView
style={styles.map}
region={{
latitude: 39.1329,
longitude: 84.5150,
latitudeDelta: 0.015,
longitudeDelta: 0.0121,
}}
>
</MapView>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0, …Run Code Online (Sandbox Code Playgroud) android google-maps android-emulator react-native react-native-maps
每次重新打开项目和模拟器时,我都必须在命令提示符下运行react-native run-android和react-native start吗?
- 谢谢
如何将Atom IDE用于React Native App.我是编程和尝试在Android中开发应用程序的新手.
有人可以为此发布教程或链接.
- 谢谢