Navigator#getCurrentRoutes()

getCurrentRoutes() Returns the current list of routes.

Navigator#configureScene

configureScene function Optional function that allows configuration about scene animations and gestures. Will be invoked with the route and the routeStack and should return a scene configuration object (route, routeStack) => Navigator.SceneConfigs.FloatFromRight Available options are: Navigator.SceneConfigs.PushFromRight (default) Navigator.SceneConfigs.FloatFromRight Navigator.SceneConfigs.FloatFromLeft Navigator.SceneConfigs.FloatFromBottom Navigator.SceneConfigs.FloatFromBottomAndroid N

Navigator Comparison

The differences between Navigator and NavigatorIOS are a common source of confusion for newcomers. Both Navigator and NavigatorIOS are components that allow you to manage the navigation in your app between various "scenes" (another word for screens). They manage a route stack and allow you to pop, push, and replace states. In this way, they are similar to the html5 history API. The primary distinction between the two is that NavigatorIOS leverages the iOS UINavigationController class, and Navig

NativeMethodsMixin.measureLayout()

static measureLayout(relativeToNativeNode, onSuccess, onFail) Like measure(), but measures the view relative an ancestor, specified as relativeToNativeNode. This means that the returned x, y are relative to the origin x, y of the ancestor view. As always, to obtain a native node handle for a component, you can use React.findNodeHandle(component).

NativeMethodsMixin.measureInWindow()

static measureInWindow(callback) Determines the location of the given view in the window and returns the values via an async callback. If the React root view is embedded in another native view, this will give you the absolute coordinates. If successful, the callback will be called with the following arguments: x y width height Note that these measurements are not available until after the rendering has been completed in native.

NativeMethodsMixin.measure()

static measure(callback) Determines the location on screen, width, and height of the given view and returns the values via an async callback. If successful, the callback will be called with the following arguments: x y width height pageX pageY Note that these measurements are not available until after the rendering has been completed in native. If you need the measurements as soon as possible, consider using the onLayout prop instead.

NativeMethodsMixin.focus()

static focus() Requests focus for the given input or view. The exact behavior triggered will depend on the platform and type of view.

NativeMethodsMixin.blur()

static blur() Removes focus from an input or view. This is the opposite of focus().

Native UI Components

There are tons of native UI widgets out there ready to be used in the latest apps - some of them are part of the platform, others are available as third-party libraries, and still more might be in use in your very own portfolio. React Native has several of the most critical platform components already wrapped, like ScrollView and TextInput, but not all of them, and certainly not ones you might have written yourself for a previous app. Fortunately, it's quite easy to wrap up these existing compo

Native UI Components

There are tons of native UI widgets out there ready to be used in the latest apps - some of them are part of the platform, others are available as third-party libraries, and still more might be in use in your very own portfolio. React Native has several of the most critical platform components already wrapped, like ScrollView and TextInput, but not all of them, and certainly not ones you might have written yourself for a previous app. Fortunately, it's quite easy to wrap up these existing compo