|
@@ -120,7 +120,11 @@
|
120
|
120
|
}
|
121
|
121
|
UIImage *iconImageSelected = nil;
|
122
|
122
|
id selectedIcon = tabItemLayout[@"props"][@"selectedIcon"];
|
123
|
|
- if (selectedIcon) iconImageSelected = [RCTConvert UIImage:selectedIcon];
|
|
123
|
+ if (selectedIcon) {
|
|
124
|
+ iconImageSelected = [RCTConvert UIImage:selectedIcon];
|
|
125
|
+ } else {
|
|
126
|
+ iconImageSelected = [RCTConvert UIImage:icon];
|
|
127
|
+ }
|
124
|
128
|
|
125
|
129
|
viewController.tabBarItem = [[UITabBarItem alloc] initWithTitle:title image:iconImage tag:0];
|
126
|
130
|
viewController.tabBarItem.accessibilityIdentifier = tabItemLayout[@"props"][@"testID"];
|