From 8b92bf76e42293d09bab0a57e40a07e6ef35c6a5 Mon Sep 17 00:00:00 2001
From: Travis CI
getCurrentRoutes() - return
that you could jumpForward topop() - Transition back and unmount the current scenereplace(route) - Replace the current scene with a new routereplaceAtIndex(route, index) - Replace a scene as specified by an indexreplacePrevious(route) - Replace the previous sceneimmediatelyResetRouteStack(routeStack) - Reset every scene with an
array of routespopToRoute(route) - Pop to a particular scene, as specified by it's
route. All scenes after it will be unmountedpopToTop() - Pop to the first scene in the stack, unmounting every
- other sceneThe navigator context object is made available to scenes through the
-renderScene function. Alternatively, any scene or component inside a
-Navigator can get the navigation context by calling
-Navigator.getContext(this).
Unlike the Navigator methods, the functions in navigation context do not -directly control a specific navigator. Instead, the navigator context allows -a scene to request navigation from its parents. Navigation requests will -travel up through the hierarchy of Navigators, and will be resolved by the -deepest active navigator.
Navigation context objects contain the following:
getCurrentRoutes() - returns the routes for the closest navigatorjumpBack() - Jump backward without unmounting the current scenejumpForward() - Jump forward to the next scene in the route stackjumpTo(route) - Transition to an existing scene without unmountingparentNavigator - a refrence to the parent navigation contextpush(route) - Navigate forward to a new scene, squashing any scenes
- that you could jumpForward topop() - Transition back and unmount the current scenereplace(route) - Replace the current scene with a new routereplaceAtIndex(route, index) - Replace a scene as specified by an indexreplacePrevious(route) - Replace the previous sceneroute - The route that was used to render the scene with this contextimmediatelyResetRouteStack(routeStack) - Reset every scene with an
- array of routespopToRoute(route) - Pop to a particular scene, as specified by it's
- route. All scenes after it will be unmountedpopToTop() - Pop to the first scene in the stack, unmounting every
other sceneOptional function that allows configuration about scene animations and gestures. Will be invoked with the route and should return a scene configuration object
Specify a route to start on. A route is an object that the navigator diff --git a/docs/panresponder.html b/docs/panresponder.html index 39ab9faa093..bf6e9da5a30 100644 --- a/docs/panresponder.html +++ b/docs/panresponder.html @@ -66,7 +66,7 @@ are the responder.