useRef.current is undefined in a React Native functional component

前端 未结 0 1849
清歌不尽
清歌不尽 2021-01-24 23:06

I\'m trying to focus a text input field once the user clicks a button. The code looks as follows:

const refName = React.useRef();

const changeFocus = () => {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题