Skip to content

danawhite/react-native-maps-route-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;