ユーザ用ツール

サイト用ツール


reactnative:react-native-geolocation-service

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
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) => {
reactnative/react-native-geolocation-service.1554234978.txt.gz · 最終更新: 2019/04/03 04:56 by ips