From a45cb1affcc01744166f62e1c0896c6d744d960e Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Sat, 26 Mar 2016 17:57:57 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/modal.html | 2 +- releases/next/docs/navigator.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/releases/next/docs/modal.html b/releases/next/docs/modal.html index aacaf2542b9..c380f2e26a3 100644 --- a/releases/next/docs/modal.html +++ b/releases/next/docs/modal.html @@ -4,7 +4,7 @@ your app written in React Native to present content above the enclosing native view hierarchy.

In apps written with React Native from the root view down, you should use Navigator instead of Modal. With a top-level Navigator, you have more control over how to present the modal scene over the rest of your app by using the -configureScene property.

Props #

animated bool #

onRequestClose function #

onShow function #

transparent bool #

visible bool #

Examples #

Edit on GitHub
'use strict'; +configureScene property.

Props #

animated bool #

onRequestClose Platform.OS === 'android' ? PropTypes.func.isRequired : PropTypes.func #

onShow function #

transparent bool #

visible bool #

Examples #

Edit on GitHub
'use strict'; var React = require('react-native'); var { diff --git a/releases/next/docs/navigator.html b/releases/next/docs/navigator.html index ace9b45e945..07054e062d7 100644 --- a/releases/next/docs/navigator.html +++ b/releases/next/docs/navigator.html @@ -35,8 +35,9 @@ will use to identify each scene to render. initialRoute must be a route in the initialRouteStack if both props are provided. The initialRoute will default to the last item in the initialRouteStack.

initialRouteStack [object] #

Provide a set of routes to initially mount. Required if no initialRoute is provided. Otherwise, it will default to an array containing only the -initialRoute

navigationBar node #

Optionally provide a navigation bar that persists across scene -transitions

navigator object #

Optionally provide the navigator object from a parent Navigator

onDidFocus function #

Will be called with the new route of each scene after the transition is +initialRoute

navigationBar node #

Optionally provide a component as navigation bar that persists across scene +transitions. The component will receive two props: navigator and navState. +It will be rerendered when the routes change.

navigator object #

Optionally provide the navigator object from a parent Navigator

onDidFocus function #

Will be called with the new route of each scene after the transition is complete or after the initial mounting

onWillFocus function #

Will emit the target route upon mounting and before each nav transition

renderScene function #

Required function which renders the scene for a given route. Will be invoked with the route and the navigator object

(route, navigator) => <MySceneComponent title={route.title} navigator={navigator} />

sceneStyle View#style #

Styles to apply to the container of each scene

Next →