Autofocus inputs in React native
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.