Match lineHeight used in ChannelInfoHeader to PostBody's (#2721)

* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS
This commit is contained in:
Miguel Alatzar 2019-04-23 13:47:54 -07:00 committed by GitHub
parent 39587aa3ae
commit 9982a2d73f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 (
<View style={style.container}>
@ -84,7 +88,7 @@ export default class ChannelInfoHeader extends React.PureComponent {
<Markdown
navigator={navigator}
onPermalinkPress={onPermalinkPress}
baseTextStyle={style.detail}
baseTextStyle={baseTextStyle}
textStyles={textStyles}
blockStyles={blockStyles}
value={purpose}
@ -101,7 +105,7 @@ export default class ChannelInfoHeader extends React.PureComponent {
<Markdown
navigator={navigator}
onPermalinkPress={onPermalinkPress}
baseTextStyle={style.detail}
baseTextStyle={baseTextStyle}
textStyles={textStyles}
blockStyles={blockStyles}
value={header}