この文書の現在のバージョンと選択したバージョンの差分を表示します。
| 両方とも前のリビジョン 前のリビジョン | |||
|
reactnative:react-native-geolocation-service [2019/04/03 04:56] ips |
reactnative:react-native-geolocation-service [2019/04/03 04:56] (現在) ips |
||
|---|---|---|---|
| ライン 87: | ライン 87: | ||
| <code javascript App.js> | <code javascript App.js> | ||
| ・・・ | ・・・ | ||
| - | import Geolocation from 'react-native-geolocation-service'; | + | import Geolocation from 'react-native-geolocation-service'; // ADD |
| ・・・ | ・・・ | ||
| async getLocation() { | async getLocation() { | ||
| - | // navigator.geolocation.getCurrentPosition( | + | // navigator.geolocation.getCurrentPosition( // CHANGE |
| Geolocation.getCurrentPosition( | Geolocation.getCurrentPosition( | ||
| (resolve) => { | (resolve) => { | ||