From ca4d08fc7e9e8c1863e2421b27c1b2527ad52ef7 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Mon, 9 Jul 2018 18:33:31 -0400 Subject: [PATCH] Use TextInput instead of QuickTextInput on Android (#1904) --- app/components/post_textbox/post_textbox.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/post_textbox/post_textbox.js b/app/components/post_textbox/post_textbox.js index c28e081d2..d16b5d97c 100644 --- a/app/components/post_textbox/post_textbox.js +++ b/app/components/post_textbox/post_textbox.js @@ -3,7 +3,7 @@ import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; -import {Alert, BackHandler, Keyboard, Platform, Text, TouchableOpacity, View} from 'react-native'; +import {Alert, BackHandler, Keyboard, Platform, Text, TextInput, TouchableOpacity, View} from 'react-native'; import {intlShape} from 'react-intl'; import {General, RequestStatus} from 'mattermost-redux/constants'; import EventEmitter from 'mattermost-redux/utils/event_emitter'; @@ -507,6 +507,8 @@ export default class PostTextbox extends PureComponent { inputContainerStyle.push(style.inputContainerWithoutFileUpload); } + const InputComponent = Platform.OS === 'android' ? TextInput : QuickTextInput; + return ( @@ -527,7 +529,7 @@ export default class PostTextbox extends PureComponent { {!channelIsReadOnly && attachmentButton} -