@complexify/expo-mapbox-navigation 1.3.0 → 1.3.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.
@@ -260,6 +260,158 @@ public class ExpoMapboxNavigationModule: Module {
|
|
260
260
|
view.controller.update()
|
261
261
|
}
|
262
262
|
}
|
263
|
+
|
264
|
+
// Next Banner View
|
265
|
+
Prop("nextBannerBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
266
|
+
if let hexColor = color {
|
267
|
+
view.controller.setNextBannerBackgroundColor(hexColor: hexColor)
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
Prop("nextBannerPrimaryTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
272
|
+
if let hexColor = color {
|
273
|
+
view.controller.setNextBannerPrimaryTextColor(hexColor: hexColor)
|
274
|
+
}
|
275
|
+
}
|
276
|
+
|
277
|
+
Prop("nextBannerSecondaryTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
278
|
+
if let hexColor = color {
|
279
|
+
view.controller.setNextBannerSecondaryTextColor(hexColor: hexColor)
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
Prop("nextBannerDistanceTextColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
284
|
+
if let hexColor = color {
|
285
|
+
view.controller.setNextBannerDistanceTextColor(hexColor: hexColor)
|
286
|
+
}
|
287
|
+
}
|
288
|
+
|
289
|
+
// Progress Bar
|
290
|
+
Prop("progressBarProgressColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
291
|
+
if let hexColor = color {
|
292
|
+
view.controller.setProgressBarProgressColor(hexColor: hexColor)
|
293
|
+
}
|
294
|
+
}
|
295
|
+
|
296
|
+
Prop("progressBarBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
297
|
+
if let hexColor = color {
|
298
|
+
view.controller.setProgressBarBackgroundColor(hexColor: hexColor)
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
// Maneuver View
|
303
|
+
Prop("maneuverViewPrimaryColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
304
|
+
if let hexColor = color {
|
305
|
+
view.controller.setManeuverViewPrimaryColor(hexColor: hexColor)
|
306
|
+
}
|
307
|
+
}
|
308
|
+
|
309
|
+
Prop("maneuverViewSecondaryColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
310
|
+
if let hexColor = color {
|
311
|
+
view.controller.setManeuverViewSecondaryColor(hexColor: hexColor)
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
Prop("maneuverViewPrimaryColorHighlighted") { (view: ExpoMapboxNavigationView, color: String?) in
|
316
|
+
if let hexColor = color {
|
317
|
+
view.controller.setManeuverViewPrimaryColorHighlighted(hexColor: hexColor)
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
Prop("maneuverViewSecondaryColorHighlighted") { (view: ExpoMapboxNavigationView, color: String?) in
|
322
|
+
if let hexColor = color {
|
323
|
+
view.controller.setManeuverViewSecondaryColorHighlighted(hexColor: hexColor)
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
// Instructions Card
|
328
|
+
Prop("instructionsCardBackgroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
329
|
+
if let hexColor = color {
|
330
|
+
view.controller.setInstructionsCardBackgroundColor(hexColor: hexColor)
|
331
|
+
}
|
332
|
+
}
|
333
|
+
|
334
|
+
Prop("instructionsCardSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
335
|
+
if let hexColor = color {
|
336
|
+
view.controller.setInstructionsCardSeparatorColor(hexColor: hexColor)
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
Prop("instructionsCardHighlightedSeparatorColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
341
|
+
if let hexColor = color {
|
342
|
+
view.controller.setInstructionsCardHighlightedSeparatorColor(hexColor: hexColor)
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
// Exit View
|
347
|
+
Prop("exitViewForegroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
348
|
+
if let hexColor = color {
|
349
|
+
view.controller.setExitViewForegroundColor(hexColor: hexColor)
|
350
|
+
}
|
351
|
+
}
|
352
|
+
|
353
|
+
Prop("exitViewBorderColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
354
|
+
if let hexColor = color {
|
355
|
+
view.controller.setExitViewBorderColor(hexColor: hexColor)
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
Prop("exitViewHighlightColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
360
|
+
if let hexColor = color {
|
361
|
+
view.controller.setExitViewHighlightColor(hexColor: hexColor)
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
// Route Shield
|
366
|
+
Prop("routeShieldForegroundColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
367
|
+
if let hexColor = color {
|
368
|
+
view.controller.setRouteShieldForegroundColor(hexColor: hexColor)
|
369
|
+
}
|
370
|
+
}
|
371
|
+
|
372
|
+
Prop("routeShieldBorderColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
373
|
+
if let hexColor = color {
|
374
|
+
view.controller.setRouteShieldBorderColor(hexColor: hexColor)
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
Prop("routeShieldHighlightColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
379
|
+
if let hexColor = color {
|
380
|
+
view.controller.setRouteShieldHighlightColor(hexColor: hexColor)
|
381
|
+
}
|
382
|
+
}
|
383
|
+
|
384
|
+
// Distance Labels
|
385
|
+
Prop("distanceRemainingColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
386
|
+
if let hexColor = color {
|
387
|
+
view.controller.setDistanceRemainingColor(hexColor: hexColor)
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
Prop("distanceUnitColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
392
|
+
if let hexColor = color {
|
393
|
+
view.controller.setDistanceUnitColor(hexColor: hexColor)
|
394
|
+
}
|
395
|
+
}
|
396
|
+
|
397
|
+
Prop("distanceValueColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
398
|
+
if let hexColor = color {
|
399
|
+
view.controller.setDistanceValueColor(hexColor: hexColor)
|
400
|
+
}
|
401
|
+
}
|
402
|
+
|
403
|
+
// Rating Control
|
404
|
+
Prop("ratingControlNormalColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
405
|
+
if let hexColor = color {
|
406
|
+
view.controller.setRatingControlNormalColor(hexColor: hexColor)
|
407
|
+
}
|
408
|
+
}
|
409
|
+
|
410
|
+
Prop("ratingControlSelectedColor") { (view: ExpoMapboxNavigationView, color: String?) in
|
411
|
+
if let hexColor = color {
|
412
|
+
view.controller.setRatingControlSelectedColor(hexColor: hexColor)
|
413
|
+
}
|
414
|
+
}
|
263
415
|
}
|
264
416
|
}
|
265
417
|
}
|