This commit adds ability to register multiple navigator event listeners: navigator.addOnNavigatorEvent(func) navigator.removeOnNavigatorEvent(func) Event listeners are removed when the screen the navigator is bound to is unmounted, calling `removeOnNavigatorEvent` isn't mandatory. As this api conflicts with the current api, addOnNavigatorEvent can't be used in a screen where setOnNavigatorEvent was used before.
|
|
||
| 21 |
|
21 |
|
| 22 |
|
22 |
|
| 23 |
|
23 |
|
|
24 |
|
|
| 24 |
|
25 |
|
| 25 |
|
26 |
|
| 26 |
|
27 |
|
|
|
||
| 141 |
|
142 |
|
| 142 |
|
143 |
|
| 143 |
|
144 |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
| 144 |
|
148 |
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
| 145 |
|
163 |
|
| 146 |
|
164 |
|
| 147 |
|
165 |
|
|
|
||
| 149 |
|
167 |
|
| 150 |
|
168 |
|
| 151 |
|
169 |
|
| 152 |
|
|
|
| 153 |
|
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
| 154 |
|
175 |
|
| 155 |
|
176 |
|
| 156 |
|
177 |
|
| 157 |
|
178 |
|
| 158 |
|
179 |
|
| 159 |
|
180 |
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
| 160 |
|
186 |
|
| 161 |
|
187 |
|
| 162 |
|
188 |
|
| 163 |
|
189 |
|
| 164 |
|
190 |
|
|
191 |
|
|
| 165 |
|
192 |
|
| 166 |
|
193 |
|
| 167 |
|
194 |
|