forked from Ivasoft/mattermost-mobile
Revert long post as ScrollView instead of View (#3334)
This commit is contained in:
committed by
Elias Nahum
parent
73d20fdcdf
commit
d5ea75171c
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user