Revert long post as ScrollView instead of View (#3334)

This commit is contained in:
Mattermost Build
2019-09-27 00:35:49 +02:00
committed by Elias Nahum
parent 73d20fdcdf
commit d5ea75171c

View File

@@ -5,6 +5,7 @@ import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {
Keyboard,
ScrollView,
View,
} from 'react-native';
import {intlShape} from 'react-intl';
@@ -408,11 +409,15 @@ export default class PostBody extends PureComponent {
if (!hasBeenDeleted) {
body = (
<View style={style.messageBody}>
<View
<ScrollView
style={{maxHeight: (showLongPost ? null : maxHeight), overflow: 'hidden'}}
scrollEnabled={false}
showsVerticalScrollIndicator={false}
showsHorizontalScrollIndicator={false}
keyboardShouldPersistTaps={'always'}
>
{messageComponent}
</View>
</ScrollView>
{isLongPost &&
<ShowMoreButton
highlight={highlight}