Browse Source

Merge subtitle options

Guy Carmeli 6 years ago
parent
commit
f398493d82

+ 3
- 1
lib/android/app/src/main/java/com/reactnativenavigation/presentation/OptionsPresenter.java View File

130
         if (options.title.component.hasValue()) topBar.setTitleComponent(options.title.component.get(), options.title.alignment);
130
         if (options.title.component.hasValue()) topBar.setTitleComponent(options.title.component.get(), options.title.alignment);
131
         if (options.title.color.hasValue()) topBar.setTitleTextColor(options.title.color.get());
131
         if (options.title.color.hasValue()) topBar.setTitleTextColor(options.title.color.get());
132
         if (options.title.fontSize.hasValue()) topBar.setTitleFontSize(options.title.fontSize.get());
132
         if (options.title.fontSize.hasValue()) topBar.setTitleFontSize(options.title.fontSize.get());
133
+        if (options.title.fontFamily != null) topBar.setTitleTypeface(options.title.fontFamily);
133
 
134
 
134
         if (options.subtitle.text.hasValue()) topBar.setSubtitle(options.subtitle.text.get());
135
         if (options.subtitle.text.hasValue()) topBar.setSubtitle(options.subtitle.text.get());
135
         if (options.subtitle.color.hasValue()) topBar.setSubtitleColor(options.subtitle.color.get());
136
         if (options.subtitle.color.hasValue()) topBar.setSubtitleColor(options.subtitle.color.get());
137
+        if (options.subtitle.fontSize.hasValue()) topBar.setSubtitleFontSize(options.subtitle.fontSize.get());
138
+        if (options.subtitle.fontFamily != null) topBar.setSubtitleFontFamily(options.subtitle.fontFamily);
136
 
139
 
137
         if (options.background.color.hasValue()) topBar.setBackgroundColor(options.background.color);
140
         if (options.background.color.hasValue()) topBar.setBackgroundColor(options.background.color);
138
 
141
 
139
         if (options.testId.hasValue()) topBar.setTestId(options.testId.get());
142
         if (options.testId.hasValue()) topBar.setTestId(options.testId.get());
140
 
143
 
141
-        if (options.title.fontFamily != null) topBar.setTitleTypeface(options.title.fontFamily);
142
         if (options.visible.isFalse()) {
144
         if (options.visible.isFalse()) {
143
             if (options.animate.isTrueOrUndefined()) {
145
             if (options.animate.isTrueOrUndefined()) {
144
                 topBar.hideAnimate(animationsOptions.pop.topBar);
146
                 topBar.hideAnimate(animationsOptions.pop.topBar);