birkir / react-native-carplay

CarPlay with React Native
https://birkir.dev/react-native-carplay/
MIT License
628 stars 104 forks source link

added removing of the views when CarPlay gets disconnected #126

Closed susonthapa closed 1 year ago

susonthapa commented 1 year ago

What has changed?

This library seems to leak the component passed to MapTemplate. We don't remove the added component when the CarPlay is disconnected. This PR adds the code to remove the component from the window when the CarPlay is disconnected.

I'm not a professional Objective-C developer. Please let me know if there is something wrong with the implementation.