You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -150,18 +150,18 @@ The functions **`this.props.setRightProps`**, **`this.props.setLeftProps`** and
150
150
151
151
As of 0.7.0 the router acts as a relay for events emitted by the navigator, and extends these to the following list:
152
152
153
-
`willFocus`: Emitted when a route will focus. Emits the route name as a string.
154
-
`didFocus`: Emitted when a route did focus. Emits the route name as a string.
155
-
`willPop`: Emitted when a route stack will be popped. Triggered by `Navigator.pop();`
156
-
`didPop`: Emitted when a route stack did pop. Triggered by `Navigator.pop();`
157
-
`willPush`: Emitted when a new route will be pushed to the route stack. Emits the new route object. Triggered by `Navigator.push(route);`
158
-
`didPush`: Emitted when a new route has been pushed to the route stack. Emits the new route object. Triggered by `Navigator.push(route);`
159
-
`willResetTo`: Emitted when the route stack will be reset to a given route. Emits the route object. Triggered by `Navigator.resetTo(route);`
160
-
`didResetTo`: Emitted when the route stack has been reset to a given route. Emits the route object. Triggered by `Navigator.resetTo(route);`
161
-
`willReplace`: Emitted when a route will replace the current one in the route stack. Emits the new route object. Triggered by `Navigator.reset(route);`
162
-
`didReplace`: Emitted when a route has replaced the current one in the route stack. Emits the new route object. Triggered by `Navigator.reset(route);`
163
-
`willPopToTop`: Emitted when the route stack will be popped to the top. Triggered by `Navigator.popToTop();`
164
-
`didPopToTop`: Emitted when the route stack has been popped to the top. Triggered by `Navigator.popToTop();`
153
+
-`willFocus`: Emitted when a route will focus. Emits the route name as a string.
154
+
-`didFocus`: Emitted when a route did focus. Emits the route name as a string.
155
+
-`willPop`: Emitted when a route stack will be popped. Triggered by `Navigator.pop();`
156
+
-`didPop`: Emitted when a route stack did pop. Triggered by `Navigator.pop();`
157
+
-`willPush`: Emitted when a new route will be pushed to the route stack. Emits the new route object. Triggered by `Navigator.push(route);`
158
+
-`didPush`: Emitted when a new route has been pushed to the route stack. Emits the new route object. Triggered by `Navigator.push(route);`
159
+
-`willResetTo`: Emitted when the route stack will be reset to a given route. Emits the route object. Triggered by `Navigator.resetTo(route);`
160
+
-`didResetTo`: Emitted when the route stack has been reset to a given route. Emits the route object. Triggered by `Navigator.resetTo(route);`
161
+
-`willReplace`: Emitted when a route will replace the current one in the route stack. Emits the new route object. Triggered by `Navigator.reset(route);`
162
+
-`didReplace`: Emitted when a route has replaced the current one in the route stack. Emits the new route object. Triggered by `Navigator.reset(route);`
163
+
-`willPopToTop`: Emitted when the route stack will be popped to the top. Triggered by `Navigator.popToTop();`
164
+
-`didPopToTop`: Emitted when the route stack has been popped to the top. Triggered by `Navigator.popToTop();`
165
165
166
166
You can listen to these events by adding an event listener as such:
0 commit comments