@complexify/expo-mapbox-navigation 1.2.0 → 1.2.1

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.
@@ -265,7 +265,7 @@ class CustomDayStyle: StandardDayStyle {
265
265
 
266
266
  // Steps List
267
267
  if let bgColor = customStepsBackgroundColor {
268
- StepsViewController.appearance(for: traitCollection).tableView.backgroundColor = bgColor
268
+ StepsBackgroundView.appearance(for: traitCollection).backgroundColor = bgColor
269
269
  }
270
270
  if let primaryTextColor = customStepsPrimaryTextColor {
271
271
  StepInstructionsView.appearance(for: traitCollection).primaryLabel.textColor = primaryTextColor
@@ -282,29 +282,29 @@ class CustomDayStyle: StandardDayStyle {
282
282
  LaneView.appearance(for: traitCollection).primaryColor = fgColor
283
283
  }
284
284
  if let separatorColor = customLaneViewSeparatorColor {
285
- LaneView.appearance(for: traitCollection).separatorColor = separatorColor
285
+ LaneView.appearance(for: traitCollection).backgroundColor = separatorColor.withAlphaComponent(0.5)
286
286
  }
287
287
 
288
288
  // Next Banner View
289
289
  if let bgColor = customNextBannerBackgroundColor {
290
- NextInstructionView.appearance(for: traitCollection).backgroundColor = bgColor
290
+ NextBannerView.appearance(for: traitCollection).backgroundColor = bgColor
291
291
  }
292
292
  if let primaryTextColor = customNextBannerPrimaryTextColor {
293
- NextInstructionView.appearance(for: traitCollection).primaryLabel.textColor = primaryTextColor
293
+ NextBannerView.appearance(for: traitCollection).textColor = primaryTextColor
294
294
  }
295
295
  if let secondaryTextColor = customNextBannerSecondaryTextColor {
296
- NextInstructionView.appearance(for: traitCollection).secondaryLabel.textColor = secondaryTextColor
296
+ NextBannerView.appearance(for: traitCollection).secondaryTextColor = secondaryTextColor
297
297
  }
298
298
  if let distanceTextColor = customNextBannerDistanceTextColor {
299
- NextInstructionView.appearance(for: traitCollection).distanceLabel.textColor = distanceTextColor
299
+ NextBannerView.appearance(for: traitCollection).distanceTextColor = distanceTextColor
300
300
  }
301
301
 
302
302
  // Progress Bar
303
303
  if let progressColor = customProgressBarProgressColor {
304
- RouteProgressView.appearance(for: traitCollection).progressColor = progressColor
304
+ ProgressBar.appearance(for: traitCollection).tintColor = progressColor
305
305
  }
306
306
  if let backgroundColor = customProgressBarBackgroundColor {
307
- RouteProgressView.appearance(for: traitCollection).backgroundColor = backgroundColor
307
+ ProgressBar.appearance(for: traitCollection).backgroundColor = backgroundColor
308
308
  }
309
309
 
310
310
  // Exit View
@@ -485,26 +485,17 @@ class CustomDayStyle: StandardDayStyle {
485
485
  DistanceLabel.appearance(for: traitCollection).valueTextColor = valueTextColor
486
486
  }
487
487
 
488
- // Rating Control
489
- if let normalColor = customRatingControlNormalColor {
490
- RatingControl.appearance(for: traitCollection).normalColor = normalColor
491
- }
492
-
493
- if let selectedColor = customRatingControlSelectedColor {
494
- RatingControl.appearance(for: traitCollection).selectedColor = selectedColor
495
- }
496
-
497
488
  // Steps Properties
498
489
  if let bgViewColor = customStepsBackgroundViewColor {
499
490
  StepsBackgroundView.appearance(for: traitCollection).backgroundColor = bgViewColor
500
491
  }
501
492
 
502
493
  if let headerTintColor = customStepsTableHeaderTintColor {
503
- StepsTableHeaderView.appearance(for: traitCollection).tintColor = headerTintColor
494
+ StepsViewController.appearance(for: traitCollection).tintColor = headerTintColor
504
495
  }
505
496
 
506
497
  if let headerTextColor = customStepsTableHeaderTextColor {
507
- StepsTableHeaderView.appearance(for: traitCollection).normalTextColor = headerTextColor
498
+ StepsViewController.appearance(for: traitCollection).textColor = headerTextColor
508
499
  }
509
500
 
510
501
  if let instructionsBgColor = customStepInstructionsBackgroundColor {
@@ -710,7 +710,7 @@ class ExpoMapboxNavigationViewController: UIViewController {
710
710
  calculateRoutesTask = Task {
711
711
  switch await self.routingProvider!.calculateRoutes(options: routeOptions).result {
712
712
  case .failure(let error):
713
- print("Route calculation failed: \(error.localizedDescription)")
713
+ print("Failed to calculate routes: \(error.localizedDescription)")
714
714
  case .success(let navigationRoutes):
715
715
  onRoutesCalculated(navigationRoutes: navigationRoutes)
716
716
  }
@@ -730,7 +730,7 @@ class ExpoMapboxNavigationViewController: UIViewController {
730
730
  calculateRoutesTask = Task {
731
731
  switch await self.routingProvider!.calculateRoutes(options: matchOptions).result {
732
732
  case .failure(let error):
733
- print("Map matching failed: \(error.localizedDescription)")
733
+ print("Failed to match routes: \(error.localizedDescription)")
734
734
  case .success(let navigationRoutes):
735
735
  onRoutesCalculated(navigationRoutes: navigationRoutes)
736
736
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complexify/expo-mapbox-navigation",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Expo module for Mapbox's Navigation SDK",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",