Skip to content

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

ref(welcome-page): native creates/destroys camera after mount

Leonard Kim609f3887f2cb
diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.js
index b9afe22507..ae9b3f1cf2 100644
--- a/react/features/welcome/components/WelcomePage.native.js
+++ b/react/features/welcome/components/WelcomePage.native.js
@@ -57,15 +57,15 @@ class WelcomePage extends AbstractWelcomePage {
}
/**
- * Implements React's {@link Component#componentWillMount()}. Invoked
- * immediately before mounting occurs. Creates a local video track if none
+ * Implements React's {@link Component#componentDidMount()}. Invoked
+ * immediately after mounting occurs. Creates a local video track if none
* is available and the camera permission was already granted.
*
* @inheritdoc
* @returns {void}
*/
- componentWillMount() {
- super.componentWillMount();
+ componentDidMount() {
+ super.componentDidMount();
const { dispatch } = this.props;