ソースを参照

onNavigationCommand

Guy Carmeli 6 年 前
コミット
903b9700f6
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4
    0
      playground/src/screens/StaticLifecycleOverlay.js

+ 4
- 0
playground/src/screens/StaticLifecycleOverlay.js ファイルの表示

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