@jadamsbit/react-native-mapbox-navigation 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/MapboxNavigationView.swift +2 -1
- package/lefthook.yml +35 -0
- package/package.json +1 -1
|
@@ -92,7 +92,8 @@ class MapboxNavigationView: UIView, NavigationViewControllerDelegate {
|
|
|
92
92
|
waypointsArray.append(destinationWaypoint)
|
|
93
93
|
|
|
94
94
|
// let options = NavigationRouteOptions(waypoints: [originWaypoint, destinationWaypoint])
|
|
95
|
-
let options = NavigationRouteOptions(waypoints: [originWaypoint, destinationWaypoint], profileIdentifier: .automobileAvoidingTraffic)
|
|
95
|
+
// let options = NavigationRouteOptions(waypoints: [originWaypoint, destinationWaypoint], profileIdentifier: .automobileAvoidingTraffic)
|
|
96
|
+
let options = NavigationRouteOptions(waypoints: waypointsArray, profileIdentifier: .automobileAvoidingTraffic)
|
|
96
97
|
|
|
97
98
|
Directions.shared.calculate(options) { [weak self] (_, result) in
|
|
98
99
|
guard let strongSelf = self, let parentVC = strongSelf.parentViewController else {
|
package/lefthook.yml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# EXAMPLE USAGE:
|
|
2
|
+
#
|
|
3
|
+
# Refer for explanation to following link:
|
|
4
|
+
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
|
|
5
|
+
#
|
|
6
|
+
# pre-push:
|
|
7
|
+
# commands:
|
|
8
|
+
# packages-audit:
|
|
9
|
+
# tags: frontend security
|
|
10
|
+
# run: yarn audit
|
|
11
|
+
# gems-audit:
|
|
12
|
+
# tags: backend security
|
|
13
|
+
# run: bundle audit
|
|
14
|
+
#
|
|
15
|
+
# pre-commit:
|
|
16
|
+
# parallel: true
|
|
17
|
+
# commands:
|
|
18
|
+
# eslint:
|
|
19
|
+
# glob: "*.{js,ts,jsx,tsx}"
|
|
20
|
+
# run: yarn eslint {staged_files}
|
|
21
|
+
# rubocop:
|
|
22
|
+
# tags: backend style
|
|
23
|
+
# glob: "*.rb"
|
|
24
|
+
# exclude: '(^|/)(application|routes)\.rb$'
|
|
25
|
+
# run: bundle exec rubocop --force-exclusion {all_files}
|
|
26
|
+
# govet:
|
|
27
|
+
# tags: backend style
|
|
28
|
+
# files: git ls-files -m
|
|
29
|
+
# glob: "*.go"
|
|
30
|
+
# run: go vet {files}
|
|
31
|
+
# scripts:
|
|
32
|
+
# "hello.js":
|
|
33
|
+
# runner: node
|
|
34
|
+
# "any.go":
|
|
35
|
+
# runner: go run
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jadamsbit/react-native-mapbox-navigation",
|
|
3
3
|
"title": "React Native Mapbox Navigation",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.17",
|
|
5
5
|
"description": "Smart Mapbox turn-by-turn routing based on real-time traffic for React Native.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|