Skip to content

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

License

Notifications You must be signed in to change notification settings

remobile/react-native-maps-direction-uri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    });

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages