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

This commit is contained in:
Elias Nahum 2019-09-27 01:30:51 +03:00 committed by GitHub
parent b96a38473c
commit 65e62371ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}