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