set prop to android and ios tablets

This commit is contained in:
GleidsonDaniel 2023-03-16 17:38:50 -03:00
parent 87e86e819e
commit c7f5e31f94
1 changed files with 8 additions and 9 deletions

View File

@ -1204,14 +1204,13 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
tmid tmid
} = this.props; } = this.props;
const isAndroidTablet: Partial<IThemedTextInput> = const tabletProps: Partial<IThemedTextInput> = isTablet
isTablet && isAndroid ? {
? { multiline: false,
multiline: false, onSubmitEditing: this.submit,
onSubmitEditing: this.submit, returnKeyType: 'send'
returnKeyType: 'send' }
} : {};
: {};
const recordAudio = const recordAudio =
showSend || !Message_AudioRecorderEnabled ? null : ( showSend || !Message_AudioRecorderEnabled ? null : (
@ -1264,7 +1263,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
defaultValue='' defaultValue=''
multiline multiline
testID={`messagebox-input${tmid ? '-thread' : ''}`} testID={`messagebox-input${tmid ? '-thread' : ''}`}
{...isAndroidTablet} {...tabletProps}
/> />
<RightButtons <RightButtons
showSend={showSend} showSend={showSend}