Browse Source

reset badge with an empty string

yogevbd 6 years ago
parent
commit
62125f9a8f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/ios/RNNBottomTabOptions.m

+ 4
- 0
lib/ios/RNNBottomTabOptions.m View File

@@ -54,6 +54,10 @@
54 54
 		if (self.badgeColor) {
55 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 63
 	if (self.visible) {