@complexify/expo-mapbox-navigation 1.2.2 → 1.3.0
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.
@@ -210,50 +210,6 @@ public class ExpoMapboxNavigationModule: Module {
|
|
210
210
|
}
|
211
211
|
}
|
212
212
|
|
213
|
-
Prop("maneuverViewPrimaryColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
214
|
-
if let hexColor = color {
|
215
|
-
view.controller.setManeuverViewPrimaryColor(hexColor: hexColor)
|
216
|
-
}
|
217
|
-
}
|
218
|
-
|
219
|
-
Prop("maneuverViewSecondaryColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
220
|
-
if let hexColor = color {
|
221
|
-
view.controller.setManeuverViewSecondaryColor(hexColor: hexColor)
|
222
|
-
}
|
223
|
-
}
|
224
|
-
|
225
|
-
Prop("maneuverViewTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
226
|
-
if let hexColor = color {
|
227
|
-
view.controller.setManeuverViewTextColor(hexColor: hexColor)
|
228
|
-
}
|
229
|
-
}
|
230
|
-
|
231
|
-
Prop("maneuverViewBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
232
|
-
if let hexColor = color {
|
233
|
-
view.controller.setManeuverViewBackgroundColor(hexColor: hexColor)
|
234
|
-
}
|
235
|
-
}
|
236
|
-
|
237
|
-
Prop("maneuverViewPrimaryColorHighlighted") { (view: ExpoMapboxNavigationView, color: String?) in
|
238
|
-
if let hexColor = color {
|
239
|
-
view.controller.setManeuverViewPrimaryColorHighlighted(hexColor: hexColor)
|
240
|
-
}
|
241
|
-
}
|
242
|
-
|
243
|
-
Prop("maneuverViewSecondaryColorHighlighted") { (view: ExpoMapboxNavigationView, color: String?) in
|
244
|
-
if let hexColor = color {
|
245
|
-
view.controller.setManeuverViewSecondaryColorHighlighted(hexColor: hexColor)
|
246
|
-
}
|
247
|
-
}
|
248
|
-
|
249
|
-
// Way Name View
|
250
|
-
Prop("wayNameViewTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
251
|
-
if let hexColor = color {
|
252
|
-
view.controller.setWayNameViewTextColor(hexColor: hexColor)
|
253
|
-
}
|
254
|
-
}
|
255
|
-
|
256
|
-
// Steps List
|
257
213
|
Prop("stepsBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
258
214
|
if let hexColor = color {
|
259
215
|
view.controller.setStepsBackgroundColor(hexColor: hexColor)
|
@@ -278,312 +234,30 @@ public class ExpoMapboxNavigationModule: Module {
|
|
278
234
|
}
|
279
235
|
}
|
280
236
|
|
281
|
-
Prop("stepsManeuverViewSecondaryColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
282
|
-
if let hexColor = color {
|
283
|
-
view.controller.setStepsManeuverViewSecondaryColor(hexColor: hexColor)
|
284
|
-
}
|
285
|
-
}
|
286
|
-
|
287
|
-
Prop("stepsSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
288
|
-
if let hexColor = color {
|
289
|
-
view.controller.setStepsSeparatorColor(hexColor: hexColor)
|
290
|
-
}
|
291
|
-
}
|
292
|
-
|
293
|
-
// Lane View
|
294
237
|
Prop("laneViewBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
295
238
|
if let hexColor = color {
|
296
239
|
view.controller.setLaneViewBackgroundColor(hexColor: hexColor)
|
297
240
|
}
|
298
241
|
}
|
299
242
|
|
300
|
-
Prop("
|
301
|
-
if let hexColor = color {
|
302
|
-
view.controller.setLaneViewForegroundColor(hexColor: hexColor)
|
303
|
-
}
|
304
|
-
}
|
305
|
-
|
306
|
-
Prop("laneViewSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
307
|
-
if let hexColor = color {
|
308
|
-
view.controller.setLaneViewSeparatorColor(hexColor: hexColor)
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
|
-
// Next Banner View
|
313
|
-
Prop("nextBannerBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
314
|
-
if let hexColor = color {
|
315
|
-
view.controller.setNextBannerBackgroundColor(hexColor: hexColor)
|
316
|
-
}
|
317
|
-
}
|
318
|
-
|
319
|
-
Prop("nextBannerPrimaryTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
320
|
-
if let hexColor = color {
|
321
|
-
view.controller.setNextBannerPrimaryTextColor(hexColor: hexColor)
|
322
|
-
}
|
323
|
-
}
|
324
|
-
|
325
|
-
Prop("nextBannerSecondaryTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
326
|
-
if let hexColor = color {
|
327
|
-
view.controller.setNextBannerSecondaryTextColor(hexColor: hexColor)
|
328
|
-
}
|
329
|
-
}
|
330
|
-
|
331
|
-
Prop("nextBannerDistanceTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
332
|
-
if let hexColor = color {
|
333
|
-
view.controller.setNextBannerDistanceTextColor(hexColor: hexColor)
|
334
|
-
}
|
335
|
-
}
|
336
|
-
|
337
|
-
// Progress Bar
|
338
|
-
Prop("progressBarProgressColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
339
|
-
if let hexColor = color {
|
340
|
-
view.controller.setProgressBarProgressColor(hexColor: hexColor)
|
341
|
-
}
|
342
|
-
}
|
343
|
-
|
344
|
-
Prop("progressBarBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
345
|
-
if let hexColor = color {
|
346
|
-
view.controller.setProgressBarBackgroundColor(hexColor: hexColor)
|
347
|
-
}
|
348
|
-
}
|
349
|
-
|
350
|
-
// Instructions Card
|
351
|
-
Prop("instructionsCardBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
352
|
-
if let hexColor = color {
|
353
|
-
view.setInstructionsCardBackgroundColor(hexColor: hexColor)
|
354
|
-
}
|
355
|
-
}
|
356
|
-
|
357
|
-
Prop("instructionsCardSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
358
|
-
if let hexColor = color {
|
359
|
-
view.setInstructionsCardSeparatorColor(hexColor: hexColor)
|
360
|
-
}
|
361
|
-
}
|
362
|
-
|
363
|
-
Prop("instructionsCardHighlightedSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
364
|
-
if let hexColor = color {
|
365
|
-
view.setInstructionsCardHighlightedSeparatorColor(hexColor: hexColor)
|
366
|
-
}
|
367
|
-
}
|
368
|
-
|
369
|
-
// Exit View
|
370
|
-
Prop("exitViewForegroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
371
|
-
if let hexColor = color {
|
372
|
-
view.setExitViewForegroundColor(hexColor: hexColor)
|
373
|
-
}
|
374
|
-
}
|
375
|
-
|
376
|
-
Prop("exitViewBorderColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
377
|
-
if let hexColor = color {
|
378
|
-
view.setExitViewBorderColor(hexColor: hexColor)
|
379
|
-
}
|
380
|
-
}
|
381
|
-
|
382
|
-
Prop("exitViewHighlightColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
383
|
-
if let hexColor = color {
|
384
|
-
view.setExitViewHighlightColor(hexColor: hexColor)
|
385
|
-
}
|
386
|
-
}
|
387
|
-
|
388
|
-
// Route Shield Colors
|
389
|
-
Prop("roadShieldBlackColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
390
|
-
if let hexColor = color {
|
391
|
-
view.setRoadShieldBlackColor(hexColor: hexColor)
|
392
|
-
}
|
393
|
-
}
|
394
|
-
|
395
|
-
Prop("roadShieldBlueColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
396
|
-
if let hexColor = color {
|
397
|
-
view.setRoadShieldBlueColor(hexColor: hexColor)
|
398
|
-
}
|
399
|
-
}
|
400
|
-
|
401
|
-
Prop("roadShieldGreenColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
402
|
-
if let hexColor = color {
|
403
|
-
view.setRoadShieldGreenColor(hexColor: hexColor)
|
404
|
-
}
|
405
|
-
}
|
406
|
-
|
407
|
-
Prop("roadShieldRedColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
408
|
-
if let hexColor = color {
|
409
|
-
view.setRoadShieldRedColor(hexColor: hexColor)
|
410
|
-
}
|
411
|
-
}
|
412
|
-
|
413
|
-
Prop("roadShieldWhiteColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
414
|
-
if let hexColor = color {
|
415
|
-
view.setRoadShieldWhiteColor(hexColor: hexColor)
|
416
|
-
}
|
417
|
-
}
|
418
|
-
|
419
|
-
Prop("roadShieldYellowColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
420
|
-
if let hexColor = color {
|
421
|
-
view.setRoadShieldYellowColor(hexColor: hexColor)
|
422
|
-
}
|
423
|
-
}
|
424
|
-
|
425
|
-
Prop("roadShieldDefaultColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
426
|
-
if let hexColor = color {
|
427
|
-
view.setRoadShieldDefaultColor(hexColor: hexColor)
|
428
|
-
}
|
429
|
-
}
|
430
|
-
|
431
|
-
// Button Properties
|
432
|
-
Prop("buttonTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
433
|
-
if let hexColor = color {
|
434
|
-
view.setButtonTextColor(hexColor: hexColor)
|
435
|
-
}
|
436
|
-
}
|
437
|
-
|
438
|
-
Prop("cancelButtonTintColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
439
|
-
if let hexColor = color {
|
440
|
-
view.setCancelButtonTintColor(hexColor: hexColor)
|
441
|
-
}
|
442
|
-
}
|
443
|
-
|
444
|
-
Prop("previewButtonTintColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
445
|
-
if let hexColor = color {
|
446
|
-
view.setPreviewButtonTintColor(hexColor: hexColor)
|
447
|
-
}
|
448
|
-
}
|
449
|
-
|
450
|
-
Prop("startButtonTintColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
451
|
-
if let hexColor = color {
|
452
|
-
view.setStartButtonTintColor(hexColor: hexColor)
|
453
|
-
}
|
454
|
-
}
|
455
|
-
|
456
|
-
Prop("dismissButtonBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
457
|
-
if let hexColor = color {
|
458
|
-
view.setDismissButtonBackgroundColor(hexColor: hexColor)
|
459
|
-
}
|
460
|
-
}
|
461
|
-
|
462
|
-
Prop("dismissButtonTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
463
|
-
if let hexColor = color {
|
464
|
-
view.setDismissButtonTextColor(hexColor: hexColor)
|
465
|
-
}
|
466
|
-
}
|
467
|
-
|
468
|
-
Prop("backButtonBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
469
|
-
if let hexColor = color {
|
470
|
-
view.setBackButtonBackgroundColor(hexColor: hexColor)
|
471
|
-
}
|
472
|
-
}
|
473
|
-
|
474
|
-
Prop("backButtonTintColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
475
|
-
if let hexColor = color {
|
476
|
-
view.setBackButtonTintColor(hexColor: hexColor)
|
477
|
-
}
|
478
|
-
}
|
479
|
-
|
480
|
-
Prop("backButtonTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
481
|
-
if let hexColor = color {
|
482
|
-
view.setBackButtonTextColor(hexColor: hexColor)
|
483
|
-
}
|
484
|
-
}
|
485
|
-
|
486
|
-
Prop("backButtonBorderColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
487
|
-
if let hexColor = color {
|
488
|
-
view.setBackButtonBorderColor(hexColor: hexColor)
|
489
|
-
}
|
490
|
-
}
|
491
|
-
|
492
|
-
// Navigation View
|
493
|
-
Prop("navigationViewBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
494
|
-
if let hexColor = color {
|
495
|
-
view.setNavigationViewBackgroundColor(hexColor: hexColor)
|
496
|
-
}
|
497
|
-
}
|
498
|
-
|
499
|
-
// Distance Label Properties
|
500
|
-
Prop("distanceLabelUnitTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
501
|
-
if let hexColor = color {
|
502
|
-
view.setDistanceLabelUnitTextColor(hexColor: hexColor)
|
503
|
-
}
|
504
|
-
}
|
505
|
-
|
506
|
-
Prop("distanceLabelValueTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
507
|
-
if let hexColor = color {
|
508
|
-
view.setDistanceLabelValueTextColor(hexColor: hexColor)
|
509
|
-
}
|
510
|
-
}
|
511
|
-
|
512
|
-
// Rating Control
|
513
|
-
Prop("ratingControlNormalColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
514
|
-
if let hexColor = color {
|
515
|
-
view.setRatingControlNormalColor(hexColor: hexColor)
|
516
|
-
}
|
517
|
-
}
|
518
|
-
|
519
|
-
Prop("ratingControlSelectedColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
520
|
-
if let hexColor = color {
|
521
|
-
view.setRatingControlSelectedColor(hexColor: hexColor)
|
522
|
-
}
|
523
|
-
}
|
524
|
-
|
525
|
-
// Steps Properties
|
526
|
-
Prop("stepsBackgroundViewColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
527
|
-
if let hexColor = color {
|
528
|
-
view.setStepsBackgroundViewColor(hexColor: hexColor)
|
529
|
-
}
|
530
|
-
}
|
531
|
-
|
532
|
-
Prop("stepsTableHeaderTintColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
533
|
-
if let hexColor = color {
|
534
|
-
view.setStepsTableHeaderTintColor(hexColor: hexColor)
|
535
|
-
}
|
536
|
-
}
|
537
|
-
|
538
|
-
Prop("stepsTableHeaderTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
539
|
-
if let hexColor = color {
|
540
|
-
view.setStepsTableHeaderTextColor(hexColor: hexColor)
|
541
|
-
}
|
542
|
-
}
|
543
|
-
|
544
|
-
Prop("stepInstructionsBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
545
|
-
if let hexColor = color {
|
546
|
-
view.setStepInstructionsBackgroundColor(hexColor: hexColor)
|
547
|
-
}
|
548
|
-
}
|
549
|
-
|
550
|
-
Prop("stepTableViewCellBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
551
|
-
if let hexColor = color {
|
552
|
-
view.setStepTableViewCellBackgroundColor(hexColor: hexColor)
|
553
|
-
}
|
554
|
-
}
|
555
|
-
|
556
|
-
// Next Instruction
|
557
|
-
Prop("nextInstructionNormalTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
558
|
-
if let hexColor = color {
|
559
|
-
view.setNextInstructionNormalTextColor(hexColor: hexColor)
|
560
|
-
}
|
561
|
-
}
|
562
|
-
|
563
|
-
Prop("nextInstructionContainedTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
564
|
-
if let hexColor = color {
|
565
|
-
view.setNextInstructionContainedTextColor(hexColor: hexColor)
|
566
|
-
}
|
567
|
-
}
|
568
|
-
|
569
|
-
// Secondary Label Properties
|
570
|
-
Prop("secondaryLabelNormalTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
243
|
+
Prop("stepsManeuverViewSecondaryColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
571
244
|
if let hexColor = color {
|
572
|
-
view.
|
245
|
+
view.controller.customDayStyle.customStepsManeuverViewSecondaryColor = UIColor(hex: hexColor)
|
246
|
+
view.controller.update()
|
573
247
|
}
|
574
248
|
}
|
575
249
|
|
576
|
-
|
577
|
-
Prop("stylableLabelNormalTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
250
|
+
Prop("stepsSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
578
251
|
if let hexColor = color {
|
579
|
-
view.
|
252
|
+
view.controller.customDayStyle.customStepsSeparatorColor = UIColor(hex: hexColor)
|
253
|
+
view.controller.update()
|
580
254
|
}
|
581
255
|
}
|
582
256
|
|
583
|
-
|
584
|
-
Prop("carPlayCompassBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
257
|
+
Prop("laneViewForegroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
585
258
|
if let hexColor = color {
|
586
|
-
view.
|
259
|
+
view.controller.customDayStyle.customLaneViewForegroundColor = UIColor(hex: hexColor)
|
260
|
+
view.controller.update()
|
587
261
|
}
|
588
262
|
}
|
589
263
|
}
|