muliline is true doesn't allow to set returnLabelType='send' on Android #33193
Labels
Needs: Triage 🔍
Platform: Android
Android applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
Description
returnKeyType does not work on Android with multi line props set to true
returnLabelType seems to be the same. The problem is on iOS it works well, this is not persistent and be able to display a Text on multiple line without linebreak become too much hard.
Reproduction
<TextInput multiline={true} returnKeyType={"send"}/> works on iOS but not on Android.
Version
0.66.4
Output of
npx react-native info
"react": "17.0.2",
"react-app-rewired": "^2.1.8",
"react-native": "0.66.4",
Steps to reproduce
textInputProps={{
...props.textInputProps,
onFocus,
onBlur,
placeholder: '',
autoFocus: false,
selectionColor: ScreenUtils.ANDROID?Colors.selectionColor:Colors.horbar_color,
returnKeyLabel: 'send',
returnKeyType: 'send',
onSubmitEditing: onSubmitEditing,
}}
<TextInput
ref={v => (this.inputRef = v)}
testID={this.props.placeholder}
accessible
accessibilityLabel={this.props.placeholder}
placeholder={this.props.placeholder}
placeholderTextColor={this.props.placeholderTextColor}
multiline={this.props.multiline}
editable={!this.props.disableComposer}
onChange={this.onContentSizeChange}
onContentSizeChange={this.onContentSizeChange}
onChangeText={this.onChangeText}
style={[
styles.textInput,
this.props.textInputStyle,
{
height: this.props.composerHeight,
...Platform.select({
web: {
outlineWidth: 0,
outlineColor: 'transparent',
outlineOffset: 0,
},
}),
},
]}
autoFocus={this.props.textInputAutoFocus}
value={this.props.text}
enablesReturnKeyAutomatically
underlineColorAndroid="transparent"
keyboardAppearance={this.props.keyboardAppearance}
{...this.props.textInputProps}
/>
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: