@jadamsbit/react-native-mapbox-navigation 1.0.3 → 1.0.5

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.
@@ -85,7 +85,7 @@ dependencies {
85
85
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
86
86
 
87
87
  // mapbox dependencies
88
- implementation "com.mapbox.navigation:android:2.17.8"
88
+ implementation "com.mapbox.navigation:android:2.18.0"
89
89
  implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
90
90
  implementation 'androidx.cardview:cardview:1.0.0'
91
91
  }
package/dist/typings.d.ts CHANGED
@@ -34,7 +34,5 @@ export interface IMapboxNavigationProps {
34
34
  hideStatusView?: boolean;
35
35
  mute?: boolean;
36
36
  waypoints?: Coordinate[];
37
- vehicleMaxHeight?: number;
38
- vehicleMaxWidth?: number;
39
37
  }
40
38
  export {};
@@ -14,7 +14,5 @@ RCT_EXPORT_VIEW_PROPERTY(showsEndOfRouteFeedback, BOOL)
14
14
  RCT_EXPORT_VIEW_PROPERTY(hideStatusView, BOOL)
15
15
  RCT_EXPORT_VIEW_PROPERTY(mute, BOOL)
16
16
  RCT_EXPORT_VIEW_PROPERTY(waypoints, NSArray<NSArray>)
17
- RCT_EXPORT_VIEW_PROPERTY(vehicleMaxHeight, NSNumber)
18
- RCT_EXPORT_VIEW_PROPERTY(vehicleMaxWidth, NSNumber)
19
17
 
20
18
  @end
@@ -43,8 +43,6 @@ class MapboxNavigationView: UIView, NavigationViewControllerDelegate {
43
43
  @objc var onError: RCTDirectEventBlock?
44
44
  @objc var onCancelNavigation: RCTDirectEventBlock?
45
45
  @objc var onArrive: RCTDirectEventBlock?
46
- @objc var vehicleMaxHeight: NSNumber?
47
- @objc var vehicleMaxWidth: NSNumber?
48
46
 
49
47
  override init(frame: CGRect) {
50
48
  self.embedded = false
@@ -96,14 +94,6 @@ class MapboxNavigationView: UIView, NavigationViewControllerDelegate {
96
94
  // let options = NavigationRouteOptions(waypoints: [originWaypoint, destinationWaypoint])
97
95
  let options = NavigationRouteOptions(waypoints: [originWaypoint, destinationWaypoint], profileIdentifier: .automobileAvoidingTraffic)
98
96
 
99
- if let vehicleMaxHeight = vehicleMaxHeight?.doubleValue {
100
- options.includesMaxHeightOnMostRestrictiveBridge = true
101
- options.maxHeight = vehicleMaxHeight
102
- }
103
- if let vehicleMaxWidth = vehicleMaxWidth?.doubleValue {
104
- options.maxWidth = vehicleMaxWidth
105
- }
106
-
107
97
  Directions.shared.calculate(options) { [weak self] (_, result) in
108
98
  guard let strongSelf = self, let parentVC = strongSelf.parentViewController else {
109
99
  return
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.3",
4
+ "version": "1.0.5",
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",
@@ -46,6 +46,6 @@ Pod::Spec.new do |s|
46
46
  s.requires_arc = true
47
47
 
48
48
  s.dependency "React-Core"
49
- s.dependency "MapboxNavigation", "~> 2.1.1"
49
+ s.dependency "MapboxNavigation", "~> 2.1.0"
50
50
  end
51
51
 
package/src/typings.ts CHANGED
@@ -38,6 +38,4 @@ export interface IMapboxNavigationProps {
38
38
  hideStatusView?: boolean;
39
39
  mute?: boolean;
40
40
  waypoints?: Coordinate[];
41
- vehicleMaxHeight?: number;
42
- vehicleMaxWidth?: number;
43
41
  }