Selaa lähdekoodia

backButton hideTitle fix

yogevbd 6 vuotta sitten
vanhempi
commit
0e45d17e40
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4
    4
      lib/ios/RNNBackButtonOptions.m

+ 4
- 4
lib/ios/RNNBackButtonOptions.m Näytä tiedosto

11
 	
11
 	
12
 	if (self.visible) {
12
 	if (self.visible) {
13
 		viewController.navigationItem.hidesBackButton = ![self.visible boolValue];
13
 		viewController.navigationItem.hidesBackButton = ![self.visible boolValue];
14
-		
15
-		if (![self.visible boolValue]) {
16
-			self.title = @"";
17
-		}
14
+	}
15
+	
16
+	if (self.hideTitle) {
17
+		self.title = @"";
18
 	}
18
 	}
19
 	
19
 	
20
 	if (self.title) {
20
 	if (self.title) {