Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

settimeout react native focus text input

const inputRef = useRef(null)

In onSubmitEditing prop, include this:

setTimeout(() => inputRef.current.focus(), 250);

Ex:

const onEnterKeyPressed = () => {
  	...
	setTimeout(() => inputRef.current.focus(), 100);	
   	...
}
<TextInput
	...
    onSubmitEditing={onEnterKeyPress}
	...
/>

Comment

PREVIOUS NEXT
Code Example
Javascript :: zoom and pan in d3.js 
Javascript :: change event when click multiple revit api 
Javascript :: textfield extjs retrinjir a 4 caracteres 
Javascript :: locale data angular 12 
Javascript :: fly: javascript fly 
Javascript :: convert javascript to java regex 
Javascript :: handle fetch error 
Javascript :: laravel tabel json nullable 
Javascript :: find duplicate characters from string in javascript 
Javascript :: iife syntax 
Javascript :: typeerror: chogigabsi eobnun bin beyole dehan recudenun error. 
Javascript :: force reload when back_forward is clicked 
Javascript :: scenery 
Javascript :: parallel and sequential implementation with asyn await javascript 
Javascript :: col flex antd 
Javascript :: dynamic operator javascript if statement 
Javascript :: https://social-network.samuraijs.com/article/faq_po_api 
Javascript :: react grid generator 
Javascript :: count same product with price in angular 
Javascript :: find every character string match JavaScript 
Javascript :: constructor function javascript and creating an object from it 
Javascript :: misturar dois arrays javascript 
Javascript :: nested array generator for js 
Javascript :: javascript check if input is empty 
Javascript :: localStorage check 
Javascript :: javascript swap 
Javascript :: javascript create new array with default values by one line 
Javascript :: tour-app-api 
Javascript :: option 1 
Javascript :: get image height Jimp nodejs 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =