Autofocus inputs in React native
![Autofocus inputs in React native Autofocus inputs in React native](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edeb31b-78f5-428e-bf55-df61b1e90d6e_2152x1244.png)
Having a stack of TextInput
's that autofocus on the next one when hitting enter is a manual process in React Native. I'm going to show you how to solve this problem once and for all. The final product will look like this:
import { Form, TextInput } from 'react-native-autofocus'
export default () => (
<Form>
<TextInput placeholder="test" />
<Te…
Keep reading with a 7-day free trial
Subscribe to zach.codes to keep reading this post and get 7 days of free access to the full post archives.