-
Notifications
You must be signed in to change notification settings - Fork 56
Commit e763c9b
committed
Added support for a bunch of events.
`willFocus`: Emitted when a route will focus. Emits the route name as a string.
`didFocus`: Emitted when a route did focus. Emits the route name as a string.
`willPop`: Emitted when a route stack will be popped. Triggered by `Navigator.pop();`
`didPop`: Emitted when a route stack did pop. Triggered by `Navigator.pop();`
`willPush`: Emitted when a new route will be pushed to the route stack. Emits the new route object. Triggered by `Navigator.push(route);`
`didPush`: Emitted when a new route has been pushed to the route stack. Emits the new route object. Triggered by `Navigator.push(route);`
`willResetTo`: Emitted when the route stack will be reset to a given route. Emits the route object. Triggered by `Navigator.resetTo(route);`
`didResetTo`: Emitted when the route stack has been reset to a given route. Emits the route object. Triggered by `Navigator.resetTo(route);`
`willReplace`: Emitted when a route will replace the current one in the route stack. Emits the new route object. Triggered by `Navigator.reset(route);`
`didReplace`: Emitted when a route has replaced the current one in the route stack. Emits the new route object. Triggered by `Navigator.reset(route);`
`willPopToTop`: Emitted when the route stack will be popped to the top. Triggered by `Navigator.popToTop();`
`didPopToTop`: Emitted when the route stack has been popped to the top. Triggered by `Navigator.popToTop();`1 parent aaec0bf commit e763c9b
2 files changed
+112
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 | - | ||
148 | - | ||
149 | - | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
150 | 163 |
| |
151 | 164 |
| |
152 | 165 |
| |
153 | - | ||
166 | + | ||
154 | 167 |
| |
155 | 168 |
| |
156 | 169 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | + | ||
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
48 | + | ||
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
50 | 67 |
| |
51 | 68 |
| |
52 | 69 |
| |
| |||
67 | 84 |
| |
68 | 85 |
| |
69 | 86 |
| |
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
70 | 125 |
| |
71 | 126 |
| |
72 | 127 |
| |
| |||
81 | 136 |
| |
82 | 137 |
| |
83 | 138 |
| |
84 | - | ||
85 | 139 |
| |
86 | 140 |
| |
87 | 141 |
| |
88 | 142 |
| |
89 | 143 |
| |
90 | 144 |
| |
91 | 145 |
| |
92 | - | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
93 | 186 |
| |
94 | 187 |
| |
95 | 188 |
| |
|
0 commit comments