@@ -390,7 +390,7 @@ return null;
390390}
391391var res = { } ;
392392var order = [ ] ; var _scene$props =
393- scene . props , navigator = _scene$props . navigator , contentComponent = _scene$props . contentComponent , drawerWidth = _scene$props . drawerWidth , lazy = _scene$props . lazy , duration = _scene$props . duration , parentProps = _objectWithoutProperties ( _scene$props , [ 'navigator' , 'contentComponent' , 'drawerWidth' , 'lazy' , 'duration' ] ) ; var
393+ scene . props , navigator = _scene$props . navigator , contentComponent = _scene$props . contentComponent , drawerWidth = _scene$props . drawerWidth , drawerLockMode = _scene$props . drawerLockMode , lazy = _scene$props . lazy , duration = _scene$props . duration , parentProps = _objectWithoutProperties ( _scene$props , [ 'navigator' , 'contentComponent' , 'drawerWidth' , 'drawerLockMode ', 'lazy' , 'duration' ] ) ; var
394394tabs = parentProps . tabs , modal = parentProps . modal , lightbox = parentProps . lightbox , overlay = parentProps . overlay , tabBarPosition = parentProps . tabBarPosition , drawer = parentProps . drawer , tabBarComponent = parentProps . tabBarComponent , transitionConfig = parentProps . transitionConfig ;
395395if ( scene . type === _Modal2 . default ) {
396396modal = true ;
@@ -520,7 +520,14 @@ tabBarPosition=_reactNative.Platform.OS==='android'?'top':'bottom';
520520return ( 0 , _reactNavigation . TabNavigator ) ( res , _extends ( { lazy :lazy , tabBarComponent :tabBarComponent , tabBarPosition :tabBarPosition , initialRouteName :initialRouteName , initialRouteParams :initialRouteParams , order :order } , commonProps , {
521521tabBarOptions :createTabBarOptions ( commonProps ) , navigationOptions :createNavigationOptions ( commonProps ) } ) ) ;
522522} else if ( drawer ) {
523- return ( 0 , _reactNavigation . DrawerNavigator ) ( res , _extends ( { initialRouteName :initialRouteName , contentComponent :contentComponent , drawerWidth :drawerWidth , order :order } , commonProps ) ) ;
523+ var config = _extends ( { initialRouteName :initialRouteName , contentComponent :contentComponent , order :order } , commonProps ) ;
524+ if ( drawerWidth ) {
525+ config . drawerWidth = drawerWidth ;
526+ }
527+ if ( drawerLockMode ) {
528+ config . drawerLockMode = drawerLockMode ;
529+ }
530+ return ( 0 , _reactNavigation . DrawerNavigator ) ( res , config ) ;
524531} else if ( overlay ) {
525532return ( 0 , _OverlayNavigator2 . default ) ( res , _extends ( { lazy :lazy , initialRouteName :initialRouteName , contentComponent :contentComponent , initialRouteParams :initialRouteParams , order :order } , commonProps , {
526533tabBarOptions :createTabBarOptions ( commonProps ) , navigationOptions :createNavigationOptions ( commonProps ) } ) ) ;
0 commit comments