how to use react native useRef hook, to select next input on next keypress

Please checkout this link to stack overflow. where I have explained this in more
here: