Browse Source

Changed backButton.hideTitle to backButton.showTitle

yogevbd 6 years ago
parent
commit
04bf72979b
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lib/ios/RNNBackButtonOptions.h
  2. 1
    1
      lib/ios/RNNBackButtonOptions.m

+ 1
- 1
lib/ios/RNNBackButtonOptions.h View File

6
 @property (nonatomic, strong) NSNumber* visible;
6
 @property (nonatomic, strong) NSNumber* visible;
7
 @property (nonatomic, strong) NSString* title;
7
 @property (nonatomic, strong) NSString* title;
8
 @property (nonatomic, strong) NSString* transition;
8
 @property (nonatomic, strong) NSString* transition;
9
-@property (nonatomic, strong) NSNumber* hideTitle;
9
+@property (nonatomic, strong) NSNumber* showTitle;
10
 
10
 
11
 @end
11
 @end

+ 1
- 1
lib/ios/RNNBackButtonOptions.m View File

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