diff --git a/react/features/chat/components/native/ChatMessageGroup.js b/react/features/chat/components/native/ChatMessageGroup.js index 51835d187..7a93c4f8a 100644 --- a/react/features/chat/components/native/ChatMessageGroup.js +++ b/react/features/chat/components/native/ChatMessageGroup.js @@ -6,7 +6,6 @@ import { FlatList } from 'react-native'; import { MESSAGE_TYPE_LOCAL, MESSAGE_TYPE_REMOTE } from '../../constants'; import ChatMessage from './ChatMessage'; -import styles from './styles'; type Props = { @@ -43,8 +42,7 @@ export default class ChatMessageGroup extends Component { data = { this.props.messages } inverted = { true } keyExtractor = { this._keyExtractor } - renderItem = { this._renderMessage } - style = { styles.messageContainer } /> + renderItem = { this._renderMessage } /> ); } diff --git a/react/features/chat/components/native/MessageContainer.js b/react/features/chat/components/native/MessageContainer.js index 6d153bec1..8cc17d4bc 100644 --- a/react/features/chat/components/native/MessageContainer.js +++ b/react/features/chat/components/native/MessageContainer.js @@ -2,6 +2,7 @@ import React from 'react'; import { FlatList, Text, View } from 'react-native'; +import { ScrollView } from 'react-native-gesture-handler'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { translate } from '../../../base/i18n'; @@ -54,6 +55,7 @@ class MessageContainer extends AbstractMessageContainer { return ( { inverted = { Boolean(data.length) } keyExtractor = { this._keyExtractor } keyboardShouldPersistTaps = 'always' - renderItem = { this._renderMessageGroup } - style = { styles.messageContainer } /> + renderItem = { this._renderMessageGroup } /> ); } @@ -110,7 +111,11 @@ class MessageContainer extends AbstractMessageContainer { * @returns {React$Element<*>} */ _renderMessageGroup({ item: messages }) { - return ; + return ( + + + + ); } } diff --git a/react/features/chat/components/native/styles.js b/react/features/chat/components/native/styles.js index 42b2d2638..80e46d6d0 100644 --- a/react/features/chat/components/native/styles.js +++ b/react/features/chat/components/native/styles.js @@ -71,10 +71,6 @@ export default { flexDirection: 'row' }, - messageContainer: { - flex: 1 - }, - /** * Wrapper View for the entire block. */