1.0.3 • Published 4 months ago

react-native-ios-directions v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months 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]] }
}