From 609f3887f2cb8cdf87f9b2434087fb8523cb3e1a Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Mon, 29 Oct 2018 12:27:12 -0700 Subject: [PATCH] ref(welcome-page): native creates/destroys camera after mount --- react/features/welcome/components/WelcomePage.native.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.js index b9afe2250..ae9b3f1cf 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;