Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added removing of the views when CarPlay gets disconnected #126

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ PODS:
- React-jsi (= 0.64.2)
- React-perflogger (= 0.64.2)
- React-jsinspector (0.64.2)
- react-native-carplay (2.0.0):
- react-native-carplay (2.1.0):
- React
- react-native-safe-area-context (3.1.9):
- React-Core
Expand Down Expand Up @@ -397,7 +397,7 @@ SPEC CHECKSUMS:
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
FBReactNativeSpec: 7a1527832c44ba429e848ed271467423857654d1
FBReactNativeSpec: b4886934c105f3a27eca969d0c2420708cd9f237
glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728
Expand All @@ -410,7 +410,7 @@ SPEC CHECKSUMS:
React-jsi: 67747b9722f6dab2ffe15b011bcf6b3f2c3f1427
React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3
React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae
react-native-carplay: 4105326f4eb8f953f21546bad9a6afb307e995d0
react-native-carplay: c95ba25269364772d115c61c4554ed476559d318
react-native-safe-area-context: b6e0e284002381d2ff29fa4fff42b4d8282e3c94
React-perflogger: 25373e382fed75ce768a443822f07098a15ab737
React-RCTActionSheet: af7796ba49ffe4ca92e7277a5d992d37203f7da5
Expand All @@ -432,4 +432,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: b15f6218223a4a66bd2b4198678a5c02d7041bae

COCOAPODS: 1.11.2
COCOAPODS: 1.12.0
1 change: 1 addition & 0 deletions ios/RNCarPlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ + (void) disconnect {
RNCarPlay *cp = [RNCarPlay allocWithZone:nil];
RNCPStore *store = [RNCPStore sharedManager];
[store setConnected:false];
[[store.window subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];

if (cp.bridge) {
[cp sendEventWithName:@"didDisconnect" body:@{}];
Expand Down