diff --git a/ios/sdk/src/JitsiMeet.m b/ios/sdk/src/JitsiMeet.m index 34b37e1d1..06c46e82f 100644 --- a/ios/sdk/src/JitsiMeet.m +++ b/ios/sdk/src/JitsiMeet.m @@ -127,6 +127,7 @@ } - (void)destroyReactNativeBridge { + [_bridgeWrapper invalidate]; _bridgeWrapper = nil; } diff --git a/ios/sdk/src/RCTBridgeWrapper.h b/ios/sdk/src/RCTBridgeWrapper.h index 995bd4fd2..0b0bcb0ee 100644 --- a/ios/sdk/src/RCTBridgeWrapper.h +++ b/ios/sdk/src/RCTBridgeWrapper.h @@ -34,4 +34,6 @@ @property (nonatomic, readonly, strong) RCTBridge *bridge; +- (void)invalidate; + @end diff --git a/ios/sdk/src/RCTBridgeWrapper.m b/ios/sdk/src/RCTBridgeWrapper.m index 2e3da65c8..28a645d3d 100644 --- a/ios/sdk/src/RCTBridgeWrapper.m +++ b/ios/sdk/src/RCTBridgeWrapper.m @@ -33,6 +33,10 @@ return self; } +- (void)invalidate { + [_bridge invalidate]; +} + #pragma mark helper methods for getting the packager URL #if DEBUG