1.4.0 • Published 9 years ago
react-native-maps-route-utils v1.4.0
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
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-maps-route-utilsand addRNMapsRouteUtils.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNMapsRouteUtils.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Usage
import RNMapsRouteUtils from 'react-native-maps-route-utils';
// TODO: What do with the module?
RNMapsRouteUtils;