Procházet zdrojové kódy

onNavigationCommand

Guy Carmeli před 6 roky
rodič
revize
903b9700f6

+ 4
- 0
playground/src/screens/StaticLifecycleOverlay.js Zobrazit soubor

@@ -20,6 +20,10 @@ class StaticLifecycleOverlay extends Component {
20 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 29
   render() {