From 9982a2d73f520336334797c2f5aee304d53111f3 Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Tue, 23 Apr 2019 13:47:54 -0700 Subject: [PATCH] Match lineHeight used in ChannelInfoHeader to PostBody's (#2721) * Match lineHeight used in ChannelInfoHeader to PostBody's * Apply lineHeight only for iOS --- app/screens/channel_info/channel_info_header.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/screens/channel_info/channel_info_header.js b/app/screens/channel_info/channel_info_header.js index 237680e04..00b1b86b3 100644 --- a/app/screens/channel_info/channel_info_header.js +++ b/app/screens/channel_info/channel_info_header.js @@ -6,6 +6,7 @@ import PropTypes from 'prop-types'; import { Text, View, + Platform, } from 'react-native'; import ChannelIcon from 'app/components/channel_icon'; @@ -52,6 +53,9 @@ export default class ChannelInfoHeader extends React.PureComponent { const style = getStyleSheet(theme); const textStyles = getMarkdownTextStyles(theme); const blockStyles = getMarkdownBlockStyles(theme); + const baseTextStyle = Platform.OS === 'ios' ? + {...style.detail, lineHeight: 20} : + style.detail; return ( @@ -84,7 +88,7 @@ export default class ChannelInfoHeader extends React.PureComponent {