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