1.0.2 • Published 2 years ago

react-native-ios-directions v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-ios-directions

Exposing the native MKDirections API on iOS.

Installation

yarn add react-native-ios-directions

Usage

import { getDirections } from "react-native-ios-directions";

const route = await getDirections([51.526023, -0.083454], [51.5336, -0.05711]);
if (route) {
    // route = { eta: 0, distance: 0, points: [[0,0],[1,1]] }
}