Bläddra i källkod

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

Masaru Ichikawa 5 år sedan
förälder
incheckning
8434938495
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      lib/ios/RNNNavigationControllerPresenter.m

+ 1
- 1
lib/ios/RNNNavigationControllerPresenter.m Visa fil

@@ -95,7 +95,7 @@
95 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 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
 	}