Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native go to next text input

const lastNameRef = useRef();

// Your other code
<TextInput
  placeholder="First Name"
  returnKeyType="next"
  onSubmitEditing={() => {
    lastNameRef.current.focus();
  }}
  blurOnSubmit={false}
/>
    
<TextInput placeholder="Last Name" ref={lastNameRef} onSubmitEditing={() => {
    // Execute code to update users name
}}/>;
 
PREVIOUS NEXT
Tagged: #react #native #text #input
ADD COMMENT
Topic
Name
7+3 =