bamlab / bamlab/react-native-formik

withNextInputAutoFocusInput goes to next input on new line for a multiline input

Open
#116 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
398
Forks
50
PR merge metrics
No merged PRs in 30d

Description

using the provided example of:
```
const MyInput = compose(
handleTextInput,
withNextInputAutoFocusInput
)(TextField);
```
on a `` it will go to the next input upon pressing enter instead of adding a new line to the multiline field.

I thought I could work around it by doing this:
```
const MyMultiInput = compose(
handleTextInput
)(TextField);
```

but unfortunately then the normal input above the "multitest" is done it skips the focus to the input below "multitest" that is another normal input.

Any thoughts on how to get around this besides making the multi fields the first or last fields in the form?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.