[FIX] Style not being applied on RoomsListView header subtitle (#2319)

This commit is contained in:
Diego Mello 2020-07-21 11:06:17 -03:00 committed by GitHub
parent 9dbe10bcf8
commit 7a5a92f33f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ const Header = React.memo(({
const { isLandscape } = useOrientation();
const scale = isIOS && isLandscape && !isTablet ? 0.8 : 1;
const titleFontSize = 16 * scale;
const subTitleFontSize = 12 * scale;
const subTitleFontSize = 14 * scale;
if (showSearchHeader) {
return (
@ -78,11 +78,11 @@ const Header = React.memo(({
<CustomIcon
name='chevron-down'
color={themes[theme].headerTintColor}
style={[showServerDropdown && styles.upsideDown, { fontSize: subTitleFontSize }]}
style={[showServerDropdown && styles.upsideDown]}
size={18}
/>
</View>
{subtitle ? <Text style={[styles.subtitle, { color: themes[theme].auxiliaryText }]} numberOfLines={1}>{subtitle}</Text> : null}
{subtitle ? <Text style={[styles.subtitle, { color: themes[theme].auxiliaryText, fontSize: subTitleFontSize }]} numberOfLines={1}>{subtitle}</Text> : null}
</TouchableOpacity>
</View>
);