An easy way to open a location in a map app of the user's choice, based on the apps they have installed on their device. The app supports Apple Maps, Google Maps, Citymapper, Uber and a dozen other apps. This is
import {showLocation} from 'react-native-map-link'; showLocation({ latitude: 38.8976763, longitude: -77.0387185, sourceLatitude: -8.0870631, // optionally specify starting location for directions sourceLongitude: -34.8941619, // required if sourceLatitude is specified title: 'The White House', //...
本库Fork 自react-native-map-link,在原库的基础上,添加对高德地图、百度地图、腾讯地图的支持。另外,解决部分 Android 设备无法识别地图应用的问题,如华为手机等。 Full list of supported apps Gaode Maps –amap Baidu Maps –baidumap Tencent Maps –qqmap ...
"name": "react-native-map-link", "version": "2.0.2", "description": "Open the map app of the user's choice with a specific location", "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/includable/react-native-map-link.git" ...
Integrate the InTouch React Native SDK Getting started Install the below mentioned library in your project. npm install mapmyindia-intouch-react-native-sdk --save If using React-native<0.60 react-native link mapmyindia-intouch-react-native-sdk Installation For Android and Ios add the below ...
React Native (0.60+) Installation Step 1 - Install Package: Using yarn Install the latest source from git: yarn add rnmapbox/maps#main Using npm Install the latest source from git: npm install --save rnmapbox/maps#main Installing other versions Replace rnmapbox/maps#main with the following...
import {showLocation} from 'react-native-map-link'; showLocation({ latitude: 38.8976763, longitude: -77.0387185, sourceLatitude: -8.0870631, // optionally specify starting location for directions sourceLongitude: -34.8941619, // not optional if sourceLatitude is specified title: 'The White House',...
import { showLocation } from 'react-native-map-link' showLocation({ latitude: 38.8976763, longitude: -77.0387185, sourceLatitude: -8.0870631, // optionally specify starting location for directions sourceLongitude: -34.8941619, // not optional if sourceLatitude is specified title: 'The White House'...
import { showLocation } from 'react-native-map-link' showLocation({ latitude: 38.8976763, longitude: -77.0387185, sourceLatitude: -8.0870631, // optionally specify starting location for directions sourceLongitude: -34.8941619, // not optional if sourceLatitude is specified title: 'The White House'...
import { showLocation } from 'react-native-map-link' showLocation({ latitude: 38.8976763, longitude: -77.0387185, sourceLatitude: -8.0870631, // optionally specify starting location for directions sourceLongitude: -34.8941619, // not optional if sourceLatitude is specified title: 'The White House'...