panhui 5 年 前
コミット
986214498a
1 ファイル変更2 行追加0 行削除
  1. 2 0
      map/SearchMapScreen.js

+ 2 - 0
map/SearchMapScreen.js

@@ -2,6 +2,7 @@
 import * as WebBrowser from "expo-web-browser";
 import * as React from "react";
 import { WebView } from "react-native-webview";
+import { Toast, Portal } from "@ant-design/react-native";
 import { useMount } from "ahooks";
 import { useModel } from "flooks";
 import { getLocation } from "../Utils/MapUtils";
@@ -11,6 +12,7 @@ export default function SearchMapScreen({ navigation }) {
   const webRef = React.useRef();
   const { showDialog } = useModel("dialogModel", true);
   useMount(() => {
+    const key = Toast.loading("Loading...", 0);
     getLocation().then(res => {
       let location = "";
       // saveLocation(