@iternio/react-native-auto-play 0.1.15 → 0.1.16

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.
@@ -654,9 +654,13 @@ object Parser {
654
654
  setRoundaboutExitNumber(it.toInt())
655
655
  }
656
656
  nitroManeuver.angle?.let { roundaboutExitAngle ->
657
- val angle =
658
- ((180 - roundaboutExitAngle) % 360).toInt().let { if (it == 0) 360 else it }
659
- setRoundaboutExitAngle(angle)
657
+ if (nitroManeuver.trafficSide == TrafficSide.LEFT) {
658
+ val angle = ((180 + roundaboutExitAngle) % 360).toInt().let { if (it == 0) 360 else it }
659
+ setRoundaboutExitAngle(angle)
660
+ } else {
661
+ val angle = ((180 - roundaboutExitAngle) % 360).toInt().let { if (it == 0) 360 else it }
662
+ setRoundaboutExitAngle(angle)
663
+ }
660
664
  }
661
665
  }
662
666
  }.build()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iternio/react-native-auto-play",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Android Auto and Apple CarPlay for react-native",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",