Fix long message not displaying for message attachments in android (#2031)

This commit is contained in:
Elias Nahum 2018-08-27 17:53:10 -03:00 committed by Harrison Healey
parent b4ca6421a0
commit 648082f385

View file

@ -409,7 +409,7 @@ export default class MessageAttachment extends PureComponent {
>
<View
style={[(isLongText && collapsed && {maxHeight, overflow: 'hidden'})]}
removeClippedSubviews={isLongText && collapsed}
removeClippedSubviews={isLongText && collapsed && Platform.OS !== 'android'}
>
<Markdown
baseTextStyle={baseTextStyle}
@ -526,6 +526,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
moreLess: {
color: theme.linkColor,
fontSize: 12,
marginTop: 5,
},
headingContainer: {
alignSelf: 'stretch',