File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const propTypes = {
30
30
statusBarColor : PropTypes . string ,
31
31
statusBarProps : PropTypes . object ,
32
32
titleStyle : Text . propTypes . style ,
33
+ sceneConfig : PropTypes . object ,
33
34
} ;
34
35
35
36
const styles = StyleSheet . create ( {
@@ -51,6 +52,7 @@ class Router extends React.Component {
51
52
this . onToFirstRoute = this . onToFirstRoute . bind ( this ) ;
52
53
this . customAction = this . customAction . bind ( this ) ;
53
54
this . renderScene = this . renderScene . bind ( this ) ;
55
+ this . configureScene = this . configureScene . bind ( this ) ;
54
56
55
57
this . onWillPop = this . onWillPop . bind ( this ) ;
56
58
this . onDidPop = this . onDidPop . bind ( this ) ;
@@ -242,7 +244,7 @@ class Router extends React.Component {
242
244
}
243
245
244
246
configureScene ( route ) {
245
- return route . sceneConfig || Navigator . SceneConfigs . FloatFromRight ;
247
+ return route . sceneConfig || this . props . sceneConfig || Navigator . SceneConfigs . FloatFromRight ;
246
248
}
247
249
248
250
renderScene ( route , navigator ) {
You can’t perform that action at this time.
0 commit comments