diff --git a/src/compose/ComposeBox.js b/src/compose/ComposeBox.js index 3f644da3114..81b99ec2dc7 100644 --- a/src/compose/ComposeBox.js +++ b/src/compose/ComposeBox.js @@ -1,6 +1,6 @@ /* @flow strict-local */ import React, { PureComponent } from 'react'; -import { Platform, View, TextInput, findNodeHandle, ScrollView } from 'react-native'; +import { Platform, View, TextInput, findNodeHandle } from 'react-native'; import type { LayoutEvent } from 'react-native/Libraries/Types/CoreEventTypes'; import TextInputReset from 'react-native-text-input-reset'; @@ -32,6 +32,7 @@ import ComposeMenu from './ComposeMenu'; import getComposeInputPlaceholder from './getComposeInputPlaceholder'; import NotSubscribed from '../message/NotSubscribed'; import AnnouncementOnly from '../message/AnnouncementOnly'; +import styles from '../styles'; import { getAuth, @@ -289,13 +290,18 @@ class ComposeBox extends PureComponent { }, composeBox: { flexDirection: 'row', - alignItems: 'flex-end', + justifyContent: 'space-between', + }, + composeMenu: { + alignSelf: 'flex-end', }, composeText: { + alignSelf: 'center', paddingVertical: 8, }, composeSendButton: { padding: 8, + alignSelf: 'flex-end', }, topicInput: { borderWidth: 0, @@ -356,11 +362,12 @@ class ComposeBox extends PureComponent { - + {this.getCanSelectTopic() && ( { onSelectionChange={this.handleMessageSelectionChange} onTouchStart={this.handleInputTouchStart} /> - + void, |}>; @@ -141,10 +143,10 @@ class ComposeMenu extends PureComponent { }); render() { - const { dispatch, expanded, onExpandContract } = this.props; + const { dispatch, expanded, onExpandContract, style } = this.props; const numIcons = Platform.OS === 'android' ? 4 : 3; return ( - +