|
@@ -30,13 +30,11 @@ UIViewController *rightViewController = nil;
|
30
|
30
|
UIViewController *centerViewController = [RCCViewController controllerWithLayout:children[0] globalProps:globalProps bridge:bridge];
|
31
|
31
|
|
32
|
32
|
// left
|
33
|
|
- UIViewController *leftViewController = nil;
|
34
|
33
|
NSString *componentLeft = props[@"componentLeft"];
|
35
|
34
|
NSDictionary *passPropsLeft = props[@"passPropsLeft"];
|
36
|
35
|
if (componentLeft) leftViewController = [[RCCViewController alloc] initWithComponent:componentLeft passProps:passPropsLeft navigatorStyle:nil globalProps:globalProps bridge:bridge];
|
37
|
36
|
|
38
|
37
|
// right
|
39
|
|
- UIViewController *rightViewController = nil;
|
40
|
38
|
NSString *componentRight = props[@"componentRight"];
|
41
|
39
|
NSDictionary *passPropsRight = props[@"passPropsRight"];
|
42
|
40
|
if (componentRight) rightViewController = [[RCCViewController alloc] initWithComponent:componentRight passProps:passPropsRight navigatorStyle:nil globalProps:globalProps bridge:bridge];
|
|
@@ -133,7 +131,7 @@ UIViewController *rightViewController = nil;
|
133
|
131
|
{
|
134
|
132
|
bool enabled = [actionParams[@"enabled"] boolValue];
|
135
|
133
|
if ([actionParams[@"side"] isEqualToString:@"left"]) {
|
136
|
|
- [super setLeftDrawerViewController: enabled ? rightViewController : nil];
|
|
134
|
+ [super setLeftDrawerViewController: enabled ? leftViewController : nil];
|
137
|
135
|
} else if ([actionParams[@"side"] isEqualToString:@"right"]) {
|
138
|
136
|
[super setRightDrawerViewController: enabled ? rightViewController : nil];
|
139
|
137
|
}
|