|
|
|
|
29
|
});
|
29
|
});
|
30
|
```
|
30
|
```
|
31
|
| Parameter | Description |
|
31
|
| Parameter | Description |
|
32
|
-|--------------------|:-----|
|
|
|
33
|
-**componentId**| Id of the appearing component
|
|
|
34
|
-**componentName**|Registered name used when registering the component with `Navigation.registerComponent()`
|
|
|
|
|
32
|
+|:--------------------:|:-----|
|
|
|
33
|
+**componentId**| Id of the appearing component|
|
|
|
34
|
+**componentName**|Registered name used when registering the component with `Navigation.registerComponent()`|
|
35
|
|
35
|
|
36
|
## componentDidDisappear
|
36
|
## componentDidDisappear
|
37
|
Called each time this component disappears from screen (detached from the view heirarchy)
|
37
|
Called each time this component disappears from screen (detached from the view heirarchy)
|
|
|
|
|
52
|
});
|
52
|
});
|
53
|
```
|
53
|
```
|
54
|
| Parameter | Description |
|
54
|
| Parameter | Description |
|
55
|
-|--------------------|:-----|
|
|
|
56
|
-**componentId**| Id of the disappearing component
|
|
|
57
|
-**componentName**|Registered name used when registering the component with `Navigation.registerComponent()`
|
|
|
|
|
55
|
+|:--------------------:|:-----|
|
|
|
56
|
+**componentId**| Id of the disappearing component|
|
|
|
57
|
+**componentName**|Registered name used when registering the component with `Navigation.registerComponent()`|
|
58
|
|
58
|
|
59
|
## registerCommandListener
|
59
|
## registerCommandListener
|
60
|
The `commandListener` is called whenever a *Navigation command* (i.e push, pop, showModal etc) is invoked.
|
60
|
The `commandListener` is called whenever a *Navigation command* (i.e push, pop, showModal etc) is invoked.
|
|
|
|
|
65
|
});
|
65
|
});
|
66
|
```
|
66
|
```
|
67
|
| Parameter | Description |
|
67
|
| Parameter | Description |
|
68
|
-|--------------------|:-----|
|
|
|
|
|
68
|
+|:--------------------:|:-----|
|
69
|
|**name** | The name of the command that was invoked. For example `push`|
|
69
|
|**name** | The name of the command that was invoked. For example `push`|
|
70
|
|**params**|`commandId`: Each command is assigned a unique Id<br>`componentId`: Optional, the componentId passed to the command<br>`layout`: Optional, If the command invoked created a screen. Slim representation of the component and its options |
|
70
|
|**params**|`commandId`: Each command is assigned a unique Id<br>`componentId`: Optional, the componentId passed to the command<br>`layout`: Optional, If the command invoked created a screen. Slim representation of the component and its options |
|
71
|
|
71
|
|
|
|
|
|
79
|
```
|
79
|
```
|
80
|
|
80
|
|
81
|
| Parameter | Description |
|
81
|
| Parameter | Description |
|
82
|
-|--------------------|:-----|
|
|
|
|
|
82
|
+|:--------------------:|:-----|
|
83
|
|**commandId** | Id of the completed command|
|
83
|
|**commandId** | Id of the completed command|
|
84
|
|**completionTime**|Timestamp when the comand, and consecutive animations, completed.|
|
84
|
|**completionTime**|Timestamp when the comand, and consecutive animations, completed.|
|
85
|
|
85
|
|