[ReactNative] JSNavigationStack rename routeMapper to renderSceneForRoute

This commit is contained in:
Eric Vicenti
2015-03-24 11:43:54 -07:00
parent 9a12b9c728
commit 23094dbfc3
6 changed files with 225 additions and 267 deletions

View File

@@ -49,7 +49,7 @@ var TabBarExample = React.createClass({
description: 'JS-implemented navigation',
},
renderSceneForRoute: function(route, nav) {
renderScene: function(route, nav) {
switch (route.id) {
case 'menu':
return (
@@ -72,9 +72,7 @@ var TabBarExample = React.createClass({
<JSNavigationStack
style={styles.container}
initialRoute={{ id: 'menu', }}
routeMapper={{
navigationItemForRoute: this.renderSceneForRoute,
}}
renderScene={this.renderScene}
animationConfigRouteMapper={(route) => JSNavigationStack.AnimationConfigs.FloatFromBottom}
/>
);