Skip to content

Commit

Permalink
Fix compose box obscured by keyboard on long message, in stream view.
Browse files Browse the repository at this point in the history
Fixes: #3369
  • Loading branch information
jainkuniya committed Aug 25, 2019
1 parent fd8330a commit aa91958
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/compose/ComposeBox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow strict-local */
import React, { PureComponent } from 'react';
import { Platform, View, TextInput, findNodeHandle } from 'react-native';
import { Platform, View, TextInput, findNodeHandle, ScrollView } from 'react-native';
import type { LayoutEvent } from 'react-native/Libraries/Types/CoreEventTypes';
import TextInputReset from 'react-native-text-input-reset';

Expand Down Expand Up @@ -290,7 +290,6 @@ class ComposeBox extends PureComponent<Props, State> {
alignItems: 'flex-end',
},
composeText: {
flex: 1,
paddingVertical: 8,
},
composeSendButton: {
Expand Down Expand Up @@ -359,7 +358,7 @@ class ComposeBox extends PureComponent<Props, State> {
expanded={isMenuExpanded}
onExpandContract={this.handleComposeMenuToggle}
/>
<View style={this.styles.composeText}>
<ScrollView contentContainerStyle={this.styles.composeText}>
{this.getCanSelectTopic() && (
<Input
style={this.styles.topicInput}
Expand Down Expand Up @@ -391,7 +390,7 @@ class ComposeBox extends PureComponent<Props, State> {
onSelectionChange={this.handleMessageSelectionChange}
onTouchStart={this.handleInputTouchStart}
/>
</View>
</ScrollView>
<FloatingActionButton
style={this.styles.composeSendButton}
Icon={editMessage === null ? IconSend : IconDone}
Expand Down

0 comments on commit aa91958

Please sign in to comment.