Browse Source

Fix iOS 9 setBadgeColor exception (#4270)

Alexander Kurnikowski 6 years ago
parent
commit
8ea6271605
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/ios/UIViewController+RNNOptions.m

+ 3
- 1
lib/ios/UIViewController+RNNOptions.m View File

87
 }
87
 }
88
 
88
 
89
 - (void)rnn_setTabBarItemBadgeColor:(UIColor *)badgeColor {
89
 - (void)rnn_setTabBarItemBadgeColor:(UIColor *)badgeColor {
90
-	self.tabBarItem.badgeColor = badgeColor;
90
+	if (@available(iOS 10.0, *)) {
91
+		self.tabBarItem.badgeColor = badgeColor;
92
+	}
91
 }
93
 }
92
 
94
 
93
 - (void)rnn_setStatusBarStyle:(NSString *)style animated:(BOOL)animated {
95
 - (void)rnn_setStatusBarStyle:(NSString *)style animated:(BOOL)animated {