|
@@ -16,7 +16,7 @@
|
16
|
16
|
[self setTitleAttributes:options.title];
|
17
|
17
|
[self setLargeTitleAttributes:options.largeTitle];
|
18
|
18
|
[self showBorder:![options.noBorder getWithDefaultValue:NO]];
|
19
|
|
- [self setBackButtonOptions:[options.backButton.icon getWithDefaultValue:nil] withColor:[options.backButton.color getWithDefaultValue:nil] title:[options.backButton.title getWithDefaultValue:nil] showTitle:[options.backButton.showTitle getWithDefaultValue:YES] fontFamily:[options.backButton.fontFamily getWithDefaultValue:nil] fontSize:[options.backButton.fontSize getWithDefaultValue:nil]];
|
|
19
|
+ [self setBackButtonOptions:options.backButton];
|
20
|
20
|
}
|
21
|
21
|
|
22
|
22
|
- (void)applyOptionsBeforePopping:(RNNTopBarOptions *)options {
|
|
@@ -48,7 +48,7 @@
|
48
|
48
|
}
|
49
|
49
|
|
50
|
50
|
if (options.backButton.hasValue) {
|
51
|
|
- [self setBackButtonOptions:[withDefault.backButton.icon getWithDefaultValue:nil] withColor:[withDefault.backButton.color getWithDefaultValue:nil] title:[withDefault.backButton.title getWithDefaultValue:nil] showTitle:[withDefault.backButton.showTitle getWithDefaultValue:YES] fontFamily:[withDefault.backButton.fontFamily getWithDefaultValue:nil] fontSize:[options.backButton.fontSize getWithDefaultValue:nil]];
|
|
51
|
+ [self setBackButtonOptions:withDefault.backButton];
|
52
|
52
|
}
|
53
|
53
|
}
|
54
|
54
|
|
|
@@ -111,8 +111,18 @@
|
111
|
111
|
}
|
112
|
112
|
}
|
113
|
113
|
|
114
|
|
-- (void)setBackButtonOptions:(UIImage *)icon withColor:(UIColor *)color title:(NSString *)title showTitle:(BOOL)showTitle fontFamily:(NSString *)fontFamily fontSize:(NSNumber *)fontSize {
|
|
114
|
+- (void)setBackButtonOptions:(RNNBackButtonOptions *)backButtonOptions {
|
|
115
|
+ UIImage* icon = [backButtonOptions.icon getWithDefaultValue:nil];
|
|
116
|
+ UIColor* color = [backButtonOptions.color getWithDefaultValue:nil];
|
|
117
|
+ NSString* title = [backButtonOptions.title getWithDefaultValue:nil];
|
|
118
|
+ BOOL showTitle = [backButtonOptions.showTitle getWithDefaultValue:YES];
|
|
119
|
+ NSString* fontFamily = [backButtonOptions.fontFamily getWithDefaultValue:nil];
|
|
120
|
+ NSNumber* fontSize = [backButtonOptions.fontSize getWithDefaultValue:nil];
|
|
121
|
+ NSString* testID = [backButtonOptions.testID getWithDefaultValue:nil];
|
|
122
|
+
|
115
|
123
|
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] init];
|
|
124
|
+ backItem.accessibilityIdentifier = testID;
|
|
125
|
+
|
116
|
126
|
NSArray* stackChildren = self.navigationController.viewControllers;
|
117
|
127
|
icon = color
|
118
|
128
|
? [[icon withTintColor:color] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
|