CarPlay (please complete the following information):
Device: Simulator
OS version iOS 17
RNCarPlay version 2.4.0
Additional context
This bug was captured on production. Same behaviour can we observed with real device.
My guess is that CarScene keeps a reference to an old template even if the app is trying to set new root template.
This is a public project if you need to check any code.
Additional testing results that might be usefull.
I observed this issue on 2.3.0 as well on 2.4.0-beta.2
But I also experience refreshing issue between those 2 versions.
Open carplay
Refresh the app (press R on react-native CLI)
On 2.3.0 carplay view blinks and refreshes.
On 2.4.0-beta.2 if not refreshing the UI at all and pressing on any list item does nothing (maybe callbacks are missing since new app instance is loaded?)
Describe the bug App crashes after re-connected to car play and pressing on any list item.
To Reproduce
Expected behavior App should handle clicks as expected
Screenshots/Videos
https://github.com/birkir/react-native-carplay/assets/52245569/984de379-bd57-4322-b03e-91915a2399af
CarPlay (please complete the following information):
Additional context This bug was captured on production. Same behaviour can we observed with real device. My guess is that CarScene keeps a reference to an old template even if the app is trying to set new root template. This is a public project if you need to check any code.
Crashlytics info: