Skip to content

Commit

Permalink
Disable autocorrect and re-enable multiline input
Browse files Browse the repository at this point in the history
Multiline input had been disabled to work around
facebook/react-native#27019. However, that
workaround no long seems to be working.

Instead, disable autoCorrect, which does work around the above issue.
  • Loading branch information
mhoran committed Oct 28, 2024
1 parent 3827543 commit e6c6097
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/usecase/buffers/ui/BufferContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,11 @@ class BufferContainer extends React.Component<Props, State> {
onBlur={this.handleOnBlur}
onSelectionChange={this.handleSelectionChange}
returnKeyType="send"
blurOnSubmit={false}
submitBehavior="submit"

Check failure on line 249 in src/usecase/buffers/ui/BufferContainer.tsx

View workflow job for this annotation

GitHub Actions / Run tsc

Type '{ style: { maxHeight: number; padding: number; justifyContent: "center"; borderColor: string; backgroundColor: string; flex: number; }; value: string; onChangeText: (textValue: string) => void; ... 8 more ...; autoCorrect: false; }' is not assignable to type 'IntrinsicAttributes & TextInputProps'.
onSubmitEditing={this.handleSubmit}
enablesReturnKeyAutomatically={true}
multiline={true}
autoCorrect={false}
/>
<UploadButton
onUpload={this.handleOnUpload}
Expand Down

0 comments on commit e6c6097

Please sign in to comment.