import useInputFocus from "rn-use-input-focus";
const App = () => {
const [inputRefs, focus] = useInputFocus(["email", "password"]);
return (
<View>
<TextInput onSubmitEditing={() => focus("email")} placeholder="Name" />
<TextInput
ref={inputRefs.email}
onSubmitEditing={() => focus("password")}
placeholder="Email"
/>
<TextInput ref={inputRefs.password} placeholder="Password" />
</View>
);
};
-
Notifications
You must be signed in to change notification settings - Fork 0
A React Native hook that makes it easier to use focus in inputs
License
metehankurucu/rn-use-input-focus
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A React Native hook that makes it easier to use focus in inputs
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published