Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[Android] Destroy containes when they are not visible

Saúl Ibarra Corretgé03b043ca2bd4
diff --git a/react/features/base/react/components/native/Container.js b/react/features/base/react/components/native/Container.js
index 4b79bf41bc..1de76511e1 100644
--- a/react/features/base/react/components/native/Container.js
+++ b/react/features/base/react/components/native/Container.js
@@ -7,6 +7,7 @@ import {
View
} from 'react-native';
+import { Platform } from '../../';
import AbstractContainer from '../AbstractContainer';
/**
@@ -38,6 +39,12 @@ export default class Container extends AbstractContainer {
// visible
if (!visible) {
+ // FIXME: Whatever I try ends up failing somehow on Android, give up
+ // for now, hoping display: 'none' solves this.
+ if (Platform.OS === 'android') {
+ return null;
+ }
+
// Intentionally hide this Container without destroying it.
// TODO Replace with display: 'none' supported in RN >= 0.43.
props.style = {