| 
				
			 | 
			
			
				@@ -9,13 +9,13 @@ 
			 | 
		
	
		
			
			| 
				9
			 | 
			
				9
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				10
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				11
			 | 
			
				11
			 | 
			
			
				 -(instancetype)initWithDict:(NSDictionary *)navigationOptions { 
			 | 
		
	
		
			
			| 
				12
			 | 
			
				
			 | 
			
			
				-	if(self = [super init]) { 
			 | 
		
	
		
			
			| 
				13
			 | 
			
				
			 | 
			
			
				-		self.topBarBackgroundColor = [navigationOptions objectForKey:@"topBarBackgroundColor"]; 
			 | 
		
	
		
			
			| 
				14
			 | 
			
				
			 | 
			
			
				-		self.statusBarHidden = [navigationOptions objectForKey:@"statusBarHidden"]; 
			 | 
		
	
		
			
			| 
				15
			 | 
			
				
			 | 
			
			
				-		self.title = [navigationOptions objectForKey:@"title"]; 
			 | 
		
	
		
			
			| 
				16
			 | 
			
				
			 | 
			
			
				-		self.topBarTextColor = [navigationOptions objectForKey:@"topBarTextColor"]; 
			 | 
		
	
		
			
			| 
				17
			 | 
			
				
			 | 
			
			
				-		self.setTabBadge = [navigationOptions objectForKey:@"setTabBadge"]; 
			 | 
		
	
		
			
			| 
				18
			 | 
			
				
			 | 
			
			
				-	} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				+	self = [super init]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+	self.topBarBackgroundColor = [navigationOptions objectForKey:@"topBarBackgroundColor"]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				14
			 | 
			
			
				+	self.statusBarHidden = [navigationOptions objectForKey:@"statusBarHidden"]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+	self.title = [navigationOptions objectForKey:@"title"]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				+	self.topBarTextColor = [navigationOptions objectForKey:@"topBarTextColor"]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				+	self.screenBackgroundColor = [navigationOptions objectForKey:@"screenBackgroundColor"]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+	self.setTabBadge = [navigationOptions objectForKey:@"setTabBadge"]; 
			 | 
		
	
		
			
			| 
				19
			 | 
			
				19
			 | 
			
			
				 	return self; 
			 | 
		
	
		
			
			| 
				20
			 | 
			
				20
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				21
			 | 
			
				21
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -25,10 +25,12 @@ 
			 | 
		
	
		
			
			| 
				25
			 | 
			
				25
			 | 
			
			
				 	} 
			 | 
		
	
		
			
			| 
				26
			 | 
			
				26
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				27
			 | 
			
				27
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				28
			 | 
			
				
			 | 
			
			
				--(void)applyOn:(UIViewController*)viewController{ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				28
			 | 
			
			
				+-(void)applyOn:(UIViewController*)viewController { 
			 | 
		
	
		
			
			| 
				29
			 | 
			
				29
			 | 
			
			
				 	if (self.topBarBackgroundColor) { 
			 | 
		
	
		
			
			| 
				30
			 | 
			
				30
			 | 
			
			
				 		UIColor* backgroundColor = [RCTConvert UIColor:self.topBarBackgroundColor]; 
			 | 
		
	
		
			
			| 
				31
			 | 
			
				31
			 | 
			
			
				 		viewController.navigationController.navigationBar.barTintColor = backgroundColor; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				32
			 | 
			
			
				+	} else { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+		viewController.navigationController.navigationBar.barTintColor = nil; 
			 | 
		
	
		
			
			| 
				32
			 | 
			
				34
			 | 
			
			
				 	} 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				35
			 | 
			
			
				 	if (self.title) { 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				36
			 | 
			
			
				 		viewController.navigationItem.title = self.title; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -37,12 +39,15 @@ 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				39
			 | 
			
			
				 		UIColor* textColor = [RCTConvert UIColor:self.topBarTextColor]; 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				40
			 | 
			
			
				 		viewController.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:textColor}; 
			 | 
		
	
		
			
			| 
				39
			 | 
			
				41
			 | 
			
			
				 	} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				42
			 | 
			
			
				+	if (self.screenBackgroundColor) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				43
			 | 
			
			
				+		UIColor* screenColor = [RCTConvert UIColor:self.screenBackgroundColor]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				44
			 | 
			
			
				+		viewController.view.backgroundColor = screenColor; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				45
			 | 
			
			
				+  } 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				46
			 | 
			
			
				 	if (self.setTabBadge) { 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				47
			 | 
			
			
				 		NSString *badge = [RCTConvert NSString:self.setTabBadge]; 
			 | 
		
	
		
			
			| 
				42
			 | 
			
				48
			 | 
			
			
				 		if (viewController.navigationController) { 
			 | 
		
	
		
			
			| 
				43
			 | 
			
				49
			 | 
			
			
				 			viewController.navigationController.tabBarItem.badgeValue = badge; 
			 | 
		
	
		
			
			| 
				44
			 | 
			
				
			 | 
			
			
				-		} 
			 | 
		
	
		
			
			| 
				45
			 | 
			
				
			 | 
			
			
				-		else { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				50
			 | 
			
			
				+    } else { 
			 | 
		
	
		
			
			| 
				46
			 | 
			
				51
			 | 
			
			
				 			viewController.tabBarItem.badgeValue = badge; 
			 | 
		
	
		
			
			| 
				47
			 | 
			
				52
			 | 
			
			
				 		} 
			 | 
		
	
		
			
			| 
				48
			 | 
			
				53
			 | 
			
			
				 	} 
			 |