title: How to scroll into View in React Native?
body: <p>I'm developing an app using React Native. There, I want to scroll into a <code>View</code> when I press a button. I've tried something like this.</p>
  
  <pre><code>render() {
    return(
      &lt;View ref={field =&gt; this.myView = field} &gt;
        //something inside the view
      &lt;/View&gt;
    )
  }
  </code></pre>
  
  <p>then, tried </p>
  
  <pre><code>this.myView.focus()
  </code></pre>
  
  <p>But, it doesn't work.</p>
  
  <p>I want to get the result as shown in the following GIF demo. How to do this?</p>
  
  <p><a href="https://i.stack.imgur.com/rAKHZ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rAKHZ.gif" alt="enter image description here"></a></p>