Skip to content

Commit acdc02a

Browse files
Exposed scene config to route
1 parent 051a8de commit acdc02a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ var Router = React.createClass({
6262
this.props.customAction(opts);
6363
},
6464

65+
configureScene: function(route) {
66+
return route.sceneConfig || Navigator.SceneConfigs.FloatFromRight;
67+
},
68+
6569
renderScene: function(route, navigator) {
6670

6771
var goForward = function(route) {
@@ -205,6 +209,7 @@ var Router = React.createClass({
205209
navigationBar={navigationBar}
206210
renderScene={this.renderScene}
207211
onWillFocus={this.onWillFocus}
212+
configureScene={this.configureScene}
208213
/>
209214
)
210215
}

0 commit comments

Comments
 (0)