|
@@ -46,17 +46,31 @@ function startTabBasedApp(params) {
|
46
|
46
|
return this.renderBody();
|
47
|
47
|
} else {
|
48
|
48
|
const navigatorID = controllerID + '_drawer';
|
|
49
|
+
|
|
50
|
+ const leftScreenId = _.uniqueId('screenInstanceID');
|
|
51
|
+ const rightScreenId = _.uniqueId('screenInstanceID')
|
|
52
|
+
|
|
53
|
+ const { navigatorStyle: leftNavigatorStyle } = params.drawer.left
|
|
54
|
+ ? _mergeScreenSpecificSettings(params.drawer.left.screen, leftScreenId, params.drawer.left)
|
|
55
|
+ : {};
|
|
56
|
+
|
|
57
|
+ const { navigatorStyle: rightNavigatorStyle } = params.drawer.right
|
|
58
|
+ ? _mergeScreenSpecificSettings(params.drawer.right.screen, rightScreenId, params.drawer.right)
|
|
59
|
+ : {};
|
|
60
|
+
|
49
|
61
|
return (
|
50
|
62
|
<DrawerControllerIOS id={navigatorID}
|
51
|
|
- componentLeft={params.drawer.left ? params.drawer.left.screen : undefined}
|
52
|
|
- passPropsLeft={{navigatorID: navigatorID}}
|
53
|
|
- componentRight={params.drawer.right ? params.drawer.right.screen : undefined}
|
54
|
|
- passPropsRight={{navigatorID: navigatorID}}
|
55
|
|
- disableOpenGesture={params.drawer.disableOpenGesture}
|
56
|
|
- type={params.drawer.type ? params.drawer.type : 'MMDrawer'}
|
57
|
|
- animationType={params.drawer.animationType ? params.drawer.animationType : 'slide'}
|
58
|
|
- style={params.drawer.style}
|
59
|
|
- appStyle={params.appStyle}
|
|
63
|
+ componentLeft={params.drawer.left ? params.drawer.left.screen : undefined}
|
|
64
|
+ styleLeft={leftNavigatorStyle}
|
|
65
|
+ passPropsLeft={{navigatorID: navigatorID}}
|
|
66
|
+ componentRight={params.drawer.right ? params.drawer.right.screen : undefined}
|
|
67
|
+ styleRight={rightNavigatorStyle}
|
|
68
|
+ passPropsRight={{navigatorID: navigatorID}}
|
|
69
|
+ disableOpenGesture={params.drawer.disableOpenGesture}
|
|
70
|
+ type={params.drawer.type ? params.drawer.type : 'MMDrawer'}
|
|
71
|
+ animationType={params.drawer.animationType ? params.drawer.animationType : 'slide'}
|
|
72
|
+ style={params.drawer.style}
|
|
73
|
+ appStyle={params.appStyle}
|
60
|
74
|
>
|
61
|
75
|
{this.renderBody()}
|
62
|
76
|
</DrawerControllerIOS>
|
|
@@ -568,7 +582,7 @@ function showInAppNotification(params) {
|
568
|
582
|
navigatorEventID,
|
569
|
583
|
navigatorID
|
570
|
584
|
};
|
571
|
|
-
|
|
585
|
+
|
572
|
586
|
savePassProps(params);
|
573
|
587
|
|
574
|
588
|
let args = {
|