Commit a1ddb3d9 authored by Qiu Xiang's avatar Qiu Xiang

优化 Utils.js

parent 199d0fa8
......@@ -52,7 +52,7 @@ export default class MarkerExample extends Component {
<Marker
active
draggable
title='一个可拖拽的标记 '
title='一个可拖拽的标记'
description={this.state.time.toLocaleTimeString()}
onDragEnd={this._onDragEvent}
onInfoWindowPress={this._onInfoWindowPress}
......
import {NativeModules} from 'react-native'
export default NativeModules.AMapUtils
const {AMapUtils} = NativeModules
export default {
distance: (lat1, lng1, lat2, lng2) => AMapUtils.distance(lat1, lng1, lat2, lng2)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment