Browse Source

fixed the bug that settings backButton color dynamically does not working (#4513)

Masaru Ichikawa 5 years ago
parent
commit
8434938495
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/ios/RNNNavigationControllerPresenter.m

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

95
 		[navigationController rnn_setNavigationBarLargeTitleVisible:newOptions.topBar.largeTitle.visible.get];
95
 		[navigationController rnn_setNavigationBarLargeTitleVisible:newOptions.topBar.largeTitle.visible.get];
96
 	}
96
 	}
97
 	
97
 	
98
-	if (newOptions.topBar.backButton.icon.hasValue) {
98
+	if (newOptions.topBar.backButton.icon.hasValue || newOptions.topBar.backButton.showTitle.hasValue || newOptions.topBar.backButton.color.hasValue || newOptions.topBar.backButton.title.hasValue) {
99
 		[navigationController rnn_setBackButtonIcon:[newOptions.topBar.backButton.icon getWithDefaultValue:nil] withColor:[newOptions.topBar.backButton.color getWithDefaultValue:nil] title:[newOptions.topBar.backButton.showTitle getWithDefaultValue:YES] ? [newOptions.topBar.backButton.title getWithDefaultValue:nil] : @""];
99
 		[navigationController rnn_setBackButtonIcon:[newOptions.topBar.backButton.icon getWithDefaultValue:nil] withColor:[newOptions.topBar.backButton.color getWithDefaultValue:nil] title:[newOptions.topBar.backButton.showTitle getWithDefaultValue:YES] ? [newOptions.topBar.backButton.title getWithDefaultValue:nil] : @""];
100
 		
100
 		
101
 	}
101
 	}