JSPM

@remobile/react-native-maps-direction-uri

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22669F
  • License MIT

a map direction use uri mode for react native, ios map,qq map,baidu map,iosa map be supported.

Package Exports

  • @remobile/react-native-maps-direction-uri

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@remobile/react-native-maps-direction-uri) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Installation

npm install @remobile/react-native-maps-direction-uri --save

Installation (Android)

  • settings.gradle include ':react-native-maps-direction-uri' project(':react-native-maps-direction-uri').projectDir = new File(settingsDir, '../node_modules/@remobile/react-native-maps-direction-uri/android')

  • build.gradle compile project(':react-native-maps-direction-uri')

  • MainApplicationnew MapsDirectionUriPackage()

Installation (iOS)

  • Project navigator->Libraries->Add Files to 选择 @remobile/react-native-maps-direction-uri/ios/RCTMapsDirectionUri.xcodeproj
  • Project navigator->Build Phases->Link Binary With Libraries 加入 libRCTMapsDirectionUri.a

Usage 使用方法

const MapsDirectionUri =  require('react-native-maps-direction-uri');
mapsDirection.startDirection({
        startLatitude:26.207149,
        startLongitude:114.593086,
        endLatitude:31.207149,
        endLongitude:118.593086,
        type(baidu,apple,iosa,google,qq)
    }, (data)=>{
        console.log('---------------data',data);
    });