react-native-navigation 8.8.2-snapshot.2429 → 8.8.2-snapshot.2434

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,9 +160,21 @@
160
160
  NSNumber *fontSize = [backButtonOptions.fontSize withDefault:nil];
161
161
 
162
162
  UIViewController *previousViewControllerInStack = self.previousViewControllerInStack;
163
- UIBarButtonItem *backItem = [[RNNUIBarBackButtonItem alloc] initWithOptions:backButtonOptions];
164
163
  UINavigationItem *previousNavigationItem = previousViewControllerInStack.navigationItem;
165
164
 
165
+ BOOL hasCustomization = icon || color || title || fontFamily || fontSize ||
166
+ backButtonOptions.displayMode.hasValue ||
167
+ backButtonOptions.sfSymbol.hasValue ||
168
+ backButtonOptions.iconBackground.hasValue ||
169
+ backButtonOptions.enableMenu.hasValue ||
170
+ ![backButtonOptions.showTitle withDefault:YES];
171
+
172
+ if (!hasCustomization) {
173
+ return;
174
+ }
175
+
176
+ UIBarButtonItem *backItem = [[RNNUIBarBackButtonItem alloc] initWithOptions:backButtonOptions];
177
+
166
178
  if (@available(iOS 13.0, *)) {
167
179
  UIImage *sfSymbol = [UIImage systemImageNamed:[backButtonOptions.sfSymbol withDefault:nil]];
168
180
  if (backButtonOptions.sfSymbol.hasValue) {
@@ -195,7 +207,9 @@
195
207
  cornerRadius:cornerRadius];
196
208
  }
197
209
 
198
- [self setBackIndicatorImage:icon withColor:color];
210
+ if (icon) {
211
+ [self setBackIndicatorImage:icon withColor:color];
212
+ }
199
213
 
200
214
  title = title ? title : (previousNavigationItem.title ? previousNavigationItem.title : @"");
201
215
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "8.8.2-snapshot.2429",
3
+ "version": "8.8.2-snapshot.2434",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,