An open API service indexing awesome lists of open source software.

https://github.com/zackify/react-native-autofocus

Autofocus the next input field on enter in React Native
https://github.com/zackify/react-native-autofocus

Last synced: 8 months ago
JSON representation

Autofocus the next input field on enter in React Native

Awesome Lists containing this project

README

          

# react-native-autofocus
`npm install react-native-autofocus`

Autofocus the next input field on enter in React Native.

Have you started with React Native, added a few inputs, and then realized you had to add refs just to focus onto the next input field? This little package solves that problem. Import your text input from this library and wrap them in a form:

```js
import { Form, TextInput } from 'react-native-autofocus'

export default () => (




)
```

Hit enter inside your first input, and the next field will be focused. The logic is all abstracted for you!