Browse Source

add logs to a few components

Guy Carmeli 6 years ago
parent
commit
6b1e1925d5

+ 16
- 0
playground/src/screens/CustomRoundedButton.js View File

@@ -16,6 +16,22 @@ class CustomRoundedButton extends Component {
16 16
     this.state = {};
17 17
   }
18 18
 
19
+  componentDidAppear() {
20
+    console.log('RNN', 'CRB.componentDidAppear');
21
+  }
22
+
23
+  componentDidDisappear() {
24
+    console.log('RNN', `CRB.componentDidDisappear`);
25
+  }
26
+
27
+  componentDidMount() {
28
+    console.log('RNN', `CRB.componentDidMount`);
29
+  }
30
+
31
+  componentWillUnmount() {
32
+    console.log('RNN', `CRB.componentWillUnmount`);
33
+  }
34
+
19 35
   render() {
20 36
     return (
21 37
       <View style={styles.container} key={'guyguy'}>

+ 4
- 4
playground/src/screens/CustomTopBar.js View File

@@ -17,19 +17,19 @@ class CustomTopBar extends Component {
17 17
   }
18 18
 
19 19
   componentDidAppear() {
20
-    console.log('guyca', 'componentDidAppear');
20
+    console.log('RNN', 'CTB.componentDidAppear');
21 21
   }
22 22
 
23 23
   componentDidDisappear() {
24
-    console.log('guyca', `componentDidDisappear`);
24
+    console.log('RNN', `CTB.componentDidDisappear`);
25 25
   }
26 26
 
27 27
   componentDidMount() {
28
-    console.log('guyca', `componentDidMount`);
28
+    console.log('RNN', `CTB.componentDidMount`);
29 29
   }
30 30
 
31 31
   componentWillUnmount() {
32
-    console.log('guyca', `componentWillUnmount`);
32
+    console.log('RNN', `CTB.componentWillUnmount`);
33 33
   }
34 34
 
35 35
   render() {