Explorar el Código

reset badge with an empty string

yogevbd hace 7 años
padre
commit
62125f9a8f
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      lib/ios/RNNBottomTabOptions.m

+ 4
- 0
lib/ios/RNNBottomTabOptions.m Ver fichero

54
 		if (self.badgeColor) {
54
 		if (self.badgeColor) {
55
 			tabBarItem.badgeColor = [RCTConvert UIColor:self.badgeColor];
55
 			tabBarItem.badgeColor = [RCTConvert UIColor:self.badgeColor];
56
 		}
56
 		}
57
+		
58
+		if ([self.badge isEqualToString:@""]) {
59
+			tabBarItem.badgeValue = nil;
60
+		}
57
 	}
61
 	}
58
 	
62
 	
59
 	if (self.visible) {
63
 	if (self.visible) {