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

This commit is contained in:
Leonard Kim
2018-10-29 12:27:12 -07:00
committed by Leonard Kim
parent 77f8f85b96
commit 609f3887f2

View File

@@ -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;