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:

Navigation Context #

The 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:

Edit on GitHubProps #

configureScene function #

Optional function that allows configuration about scene animations and gestures. Will be invoked with the route and should return a scene configuration object

(route) => Navigator.SceneConfigs.FloatFromRight

initialRoute 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.

var CIRCLE_HIGHLIGHT_COLOR = 'green'; -var NavigatorIOSExample = React.createClass({ +var PanResponderExample = React.createClass({ statics: { title: 'PanResponder Sample', @@ -172,7 +172,7 @@ are the responder.

}, }); -module.exports = NavigatorIOSExample;

Next →