Selaa lähdekoodia

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

master
Leonard Kim 7 vuotta sitten
vanhempi
commit
609f3887f2
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4
    4
      react/features/welcome/components/WelcomePage.native.js

+ 4
- 4
react/features/welcome/components/WelcomePage.native.js Näytä tiedosto

@@ -57,15 +57,15 @@ class WelcomePage extends AbstractWelcomePage {
57 57
     }
58 58
 
59 59
     /**
60
-     * Implements React's {@link Component#componentWillMount()}. Invoked
61
-     * immediately before mounting occurs. Creates a local video track if none
60
+     * Implements React's {@link Component#componentDidMount()}. Invoked
61
+     * immediately after mounting occurs. Creates a local video track if none
62 62
      * is available and the camera permission was already granted.
63 63
      *
64 64
      * @inheritdoc
65 65
      * @returns {void}
66 66
      */
67
-    componentWillMount() {
68
-        super.componentWillMount();
67
+    componentDidMount() {
68
+        super.componentDidMount();
69 69
 
70 70
         const { dispatch } = this.props;
71 71
 

Loading…
Peruuta
Tallenna