react-native-maps-route-utils

React Native utility component for use with iOS Maps applications. This component gives you the ability to display distance as well as estimated travel time between two points within a routing application.

Usage no npm install needed!

<script type="module">
  import reactNativeMapsRouteUtils from 'https://cdn.skypack.dev/react-native-maps-route-utils';
</script>

README

react-native-maps-route-utils

React Native utility component for use with iOS Maps applications. This component gives you the ability to display distance as well as estimated travel time between two points within a routing application.

$ npm install react-native-maps-route-utils --save

Mostly automatic installation

$ react-native link react-native-maps-route-utils

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-maps-route-utils and add RNMapsRouteUtils.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNMapsRouteUtils.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import RNMapsRouteUtils from 'react-native-maps-route-utils';

// TODO: What do with the module?
RNMapsRouteUtils;