Browse Source

onNavigationCommand

Guy Carmeli 6 years ago
parent
commit
903b9700f6
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      playground/src/screens/StaticLifecycleOverlay.js

+ 4
- 0
playground/src/screens/StaticLifecycleOverlay.js View File

20
         events: [...this.state.events, { event: 'componentDidDisappear', componentId, componentName }]
20
         events: [...this.state.events, { event: 'componentDidDisappear', componentId, componentName }]
21
       });
21
       });
22
     });
22
     });
23
+    Navigation.events().onNavigationCommand((name, params) => {
24
+      // console.log('RNN', `name: ${JSON.stringify(name)}`);
25
+      // console.log('RNN', `params: ${JSON.stringify(params)}`);
26
+    });
23
   }
27
   }
24
 
28
 
25
   render() {
29
   render() {