react-native-form-focus-management
Did you ever have to...
- Automatically focus the first input
- Submit the form when editing finishes on the last form
- Move focus to the next input when the
next
button is tapped - De-focus all inputs
Then you know how much of a painful experience this is when working with a list or group of inputs in a form. react-native provides no existing abstraction to manage focus when working with multiple inputs at once.
react-native-form-focus-management
gives you a set of tools to make this less painful. Less hacking with refs
and a convenient way of manging focus in a form.
; ; ;
Other tools
AutoManagedFormFocus
AutoManagedFormFocus
sits on top of FocusableGroup
and implements some of the most common focus-related work in a form:
- Let the user navigate to the next field using the
returnKey
on the keyboard. - Let the user submit the form using the
returnkey
on the keyboard. - Automatically focus the first input.
; ; ;