Commit f74da008 authored by Qiu Xiang's avatar Qiu Xiang

降低 example events 定位频次

parent ff7d282f
import React, {Component} from 'react'
import {
View,
Text,
FlatList,
StyleSheet,
} from 'react-native'
import {FlatList, StyleSheet, Text, View} from 'react-native'
import MapView from 'react-native-amap3d'
export default class EventsExample extends Component {
......@@ -43,13 +38,16 @@ export default class EventsExample extends Component {
return <View style={styles.body}>
<MapView
locationEnabled
locationInterval={10000}
distanceFilter={10}
onPress={this._logPressEvent}
onLongPress={this._logLongPressEvent}
onLocation={this._logLocationEvent}
onStatusChange={this._logStatusChangeEvent}
onStatusChangeComplete={this._logStatusChangeCompleteEvent}
style={styles.body}/>
<FlatList style={styles.logs} data={this.state.logs} renderItem={this._renderItem}/>
<FlatList style={styles.logs} data={this.state.logs}
renderItem={this._renderItem}/>
</View>
}
}
......
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