Ver código fonte

onNavigationCommand

Guy Carmeli 6 anos atrás
pai
commit
903b9700f6
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      playground/src/screens/StaticLifecycleOverlay.js

+ 4
- 0
playground/src/screens/StaticLifecycleOverlay.js Ver arquivo

@@ -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() {