File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ - (void)mergeOptions:(RNNNavigationOptions *)mergeOptions
3838
3939- (void )createTabBarItem : (UIViewController *)child
4040 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+ }
4245}
4346
4447@end
Original file line number Diff line number Diff line change 55@implementation RNNTabBarItemCreator
66
77- (UITabBarItem *)createTabBarItem : (UITabBarItem *)mergeItem {
8- return [UITabBarItem new ];
8+ return mergeItem ?: [UITabBarItem new ];
99}
1010
1111- (UITabBarItem *)createTabBarItem : (RNNBottomTabOptions *)bottomTabOptions
You can’t perform that action at this time.
0 commit comments