react-native-navigation 8.8.0 → 8.8.1

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.
@@ -38,7 +38,10 @@
38
38
 
39
39
  - (void)createTabBarItem:(UIViewController *)child
40
40
  bottomTabOptions:(RNNBottomTabOptions *)bottomTabOptions {
41
- child.tabBarItem = [_tabCreator createTabBarItem:bottomTabOptions mergeItem:child.tabBarItem];
41
+ UITabBarItem *updatedItem = [_tabCreator createTabBarItem:bottomTabOptions mergeItem:child.tabBarItem];
42
+ if (updatedItem != child.tabBarItem) {
43
+ child.tabBarItem = updatedItem;
44
+ }
42
45
  }
43
46
 
44
47
  @end
@@ -5,7 +5,7 @@
5
5
  @implementation RNNTabBarItemCreator
6
6
 
7
7
  - (UITabBarItem *)createTabBarItem:(UITabBarItem *)mergeItem {
8
- return [UITabBarItem new];
8
+ return mergeItem ?: [UITabBarItem new];
9
9
  }
10
10
 
11
11
  - (UITabBarItem *)createTabBarItem:(RNNBottomTabOptions *)bottomTabOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,