title: React Native & TypeScript : Property 'focus' does not exist on type 'RefObject<TextInput>'
body: <p>That's what I am doing:</p>
  <pre><code>  declare passCodeInput:  React.RefObject&lt;TextInput&gt;;
  </code></pre>
  <p>But here's an issue that I am getting while trying to call <code>focus</code> method:</p>
  <pre><code>setTimeout(() =&gt; this.passCodeInput.focus());
  </code></pre>
  <p><a href="https://i.stack.imgur.com/412mR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/412mR.png" alt="enter image description here" /></a></p>
  <p>I call <code>focus</code> on <code>current</code>, like, <code>this.passCodeInput.current!.focus())</code> but this won't work in my case.</p>