Scroll View inside view not working react native
<p>Here I am trying a simple code but the scroll view is not working if kept inside another view. Code is like this:</p>

<pre><code>  return(
  &lt;View&gt;
    &lt;Toolbar title={this.props.title}&gt;
    &lt;/Toolbar&gt;

    &lt;ScrollView&gt;

      &lt;HomeScreenTop /&gt;
      &lt;HomeScreenBottom navigator={navigator}/&gt;

      &lt;/ScrollView&gt;

  &lt;/View&gt;
 );
</code></pre>

<p>But if scroll view kept as parent view it works perfectly. Code is as below:</p>

<pre><code>  return(
  &lt;ScrollView&gt;
    &lt;Toolbar title={this.props.title}&gt;
    &lt;/Toolbar&gt;

      &lt;HomeScreenTop /&gt;
      &lt;HomeScreenBottom navigator={navigator}/&gt;

  &lt;/ScrollView&gt;
 );
</code></pre>

<p>Now the problem is I don't want my toolbar to scroll up and down, I just want the contents below the toolbar to move. How can I achieve that?</p>

<p>And next question: Is scroll view has to be parent view to be returned to work?</p>