Browse Source

fix compilation error, sorry :) (#2070)

Ran Greenberg 7 years ago
parent
commit
3c5b4fd782
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RCCTabBarController.m

+ 1
- 1
ios/RCCTabBarController.m View File

@@ -266,7 +266,7 @@
266 266
         NSString *badgeColor = actionParams[@"badgeColor"];
267 267
         UIColor *color = badgeColor != (id)[NSNull null] ? [RCTConvert UIColor:badgeColor] : nil;
268 268
         
269
-        if (viewController.tabBarItem respondsToSelector:@selector(badgeColor)) {
269
+        if ([viewController.tabBarItem respondsToSelector:@selector(badgeColor)]) {
270 270
           viewController.tabBarItem.badgeColor = color;
271 271
         }
272 272
         viewController.tabBarItem.badgeValue = [NSString stringWithFormat:@"%@", badge];