Ver código fonte

Fixed backButtonImage on iOS

yogevbd 6 anos atrás
pai
commit
548f2653c9
1 arquivos alterados com 2 adições e 4 exclusões
  1. 2
    4
      lib/ios/RNNTopBarOptions.m

+ 2
- 4
lib/ios/RNNTopBarOptions.m Ver arquivo

148
 	}
148
 	}
149
 	
149
 	
150
 	UIImage *image = self.backButtonImage ? [RCTConvert UIImage:self.backButtonImage] : nil;
150
 	UIImage *image = self.backButtonImage ? [RCTConvert UIImage:self.backButtonImage] : nil;
151
-	[[UINavigationBar appearance] setBackIndicatorImage:image];
152
-	[[UINavigationBar appearance] setBackIndicatorTransitionMaskImage:image];
151
+	[viewController.navigationController.navigationBar setBackIndicatorImage:image];
152
+	[viewController.navigationController.navigationBar setBackIndicatorTransitionMaskImage:image];
153
 	
153
 	
154
 	if (self.hideBackButtonTitle) {
154
 	if (self.hideBackButtonTitle) {
155
 		self.backButtonTitle = @"";
155
 		self.backButtonTitle = @"";
188
 }
188
 }
189
 
189
 
190
 @end
190
 @end
191
-
192
-