diff --git a/docs/geolocation.html b/docs/geolocation.html index fced08db6db..f3097adcb83 100644 --- a/docs/geolocation.html +++ b/docs/geolocation.html @@ -40,8 +40,8 @@ exports.examples : function() { navigator.geolocation.getCurrentPosition( (initialPosition) => this.setState({initialPosition}), - (error) => console.error(error), - {enableHighAccuracy: true, timeout: 100, maximumAge: 1000} + (error) => alert(error.message), + {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000} ); this.watchID = navigator.geolocation.watchPosition((lastPosition) => { this.setState({lastPosition}); diff --git a/docs/navigator.html b/docs/navigator.html index f0af88853b3..3c16bc2c191 100644 --- a/docs/navigator.html +++ b/docs/navigator.html @@ -28,17 +28,6 @@ on it to trigger navigation:
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.