A simple tutorial for Weex
Jinjiang Zhao
364

Hi JinJiang,

Thanks for the tutorial. I would like to use geolocation but I can’t seem to find it. I was sent to https://market.dotwe.org/ext/list.htm#25

dow you please have an idea?

<script>
import 'Nat' from 'natjs'

// get
Nat.geolocation.get((err, ret) => {
console.log(ret)
})

// watch
Nat.geolocation.watch((err, ret) => {
console.log(ret)
})

// clearWatch
Nat.geolocation.clearWatch()

</script>