MapMarkScreen.jsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import * as WebBrowser from 'expo-web-browser';
  2. import * as React from 'react';
  3. import { StatusBar } from 'expo-status-bar';
  4. import {
  5. Div,
  6. Button,
  7. Image,
  8. Text,
  9. Avatar,
  10. Icon,
  11. Input,
  12. } from 'react-native-magnus';
  13. import { Appbar } from 'react-native-paper';
  14. import { ScrollView } from 'react-native-gesture-handler';
  15. import { WebView } from 'react-native-webview';
  16. import useModel from 'flooks';
  17. import MapModel from './model'; // detail模块通用方法
  18. import Header from '../../components/Header';
  19. import { alert } from '../../Utils/TotastUtils';
  20. export default function MapMarkScreen() {
  21. const { personImg, merchatImg, riderImg } = useModel(MapModel, []);
  22. return (
  23. <>
  24. <Div bg="white">
  25. <Image
  26. h={200}
  27. source={{
  28. uri: `https://apis.map.qq.com/ws/staticmap/v2/?center=31.981746,118.734661&zoom=18&size=939*600&maptype=roadmap&markers=icon:${personImg}%7C31.981746,118.734661&markers=icon:${merchatImg}%7C31.982155,118.734716&markers=icon:${riderImg}%7C31.981746,118.734661&key=GLFBZ-ZR2W6-76XSA-MF7CQ-GDJ6Z-6FB5K`,
  29. }}
  30. />
  31. </Div>
  32. </>
  33. );
  34. }