API兼容性:
QRN:v5.0.8
iOS:不支持
Android:60001409
import { QTextureMapView } from 'qunar-react-native';
QTextureMapView
组件是为了解决QMapView在android端,快速刷新场景,可能出现暂时的透下去或者黑屏的问题 使用方式和支持的属性和QMapView一样,具体使用文档可以参看QMapView
import { QTextureMapView } from 'qunar-react-native';
<QTextureMapView
ref={ref => { this.map = ref; }}
style={styles.map}
initRegion={latitude: 37.78825,longitude: -122.4324}
region={latitude: 37.78825,longitude: -122.4324}
onRegionChange={region => this.onRegionChange(region)}
onRegionChangeStart={region => this.onRegionChangeStart(region)}
/>
onRegionChange(regionDisplay) {
this.setState({ regionDisplay });
}
onRegionChangeStart(){
console.log('User will drag the map');
}