Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-amap3d
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-amap3d
Commits
f74da008
Commit
f74da008
authored
Sep 19, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
降低 example events 定位频次
parent
ff7d282f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
events.js
example/src/examples/events.js
+5
-7
No files found.
example/src/examples/events.js
View file @
f74da008
import
React
,
{
Component
}
from
'react'
import
React
,
{
Component
}
from
'react'
import
{
import
{
FlatList
,
StyleSheet
,
Text
,
View
}
from
'react-native'
View
,
Text
,
FlatList
,
StyleSheet
,
}
from
'react-native'
import
MapView
from
'react-native-amap3d'
import
MapView
from
'react-native-amap3d'
export
default
class
EventsExample
extends
Component
{
export
default
class
EventsExample
extends
Component
{
...
@@ -43,13 +38,16 @@ export default class EventsExample extends Component {
...
@@ -43,13 +38,16 @@ export default class EventsExample extends Component {
return
<
View
style
=
{
styles
.
body
}
>
return
<
View
style
=
{
styles
.
body
}
>
<
MapView
<
MapView
locationEnabled
locationEnabled
locationInterval
=
{
10000
}
distanceFilter
=
{
10
}
onPress
=
{
this
.
_logPressEvent
}
onPress
=
{
this
.
_logPressEvent
}
onLongPress
=
{
this
.
_logLongPressEvent
}
onLongPress
=
{
this
.
_logLongPressEvent
}
onLocation
=
{
this
.
_logLocationEvent
}
onLocation
=
{
this
.
_logLocationEvent
}
onStatusChange
=
{
this
.
_logStatusChangeEvent
}
onStatusChange
=
{
this
.
_logStatusChangeEvent
}
onStatusChangeComplete
=
{
this
.
_logStatusChangeCompleteEvent
}
onStatusChangeComplete
=
{
this
.
_logStatusChangeCompleteEvent
}
style
=
{
styles
.
body
}
/
>
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
>
<
/View
>
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment