title: React Navigation v6 stack navigator with headerLargeTitle collapsing too fast
body: <p>In my app I am trying to use <a href="https://reactnavigation.org/docs/native-stack-navigator/" rel="nofollow noreferrer">React Navigation's stack navigator</a> with <code>headerLargeTitle</code> and <code>headerTransparent</code> enabled.</p>
  <p>My implementation looks like this:</p>
  <p>Navigator.tsx</p>
  <pre><code>&lt;HomeStack.Navigator
    initialRouteName=&quot;ScreenA&quot;
    screenOptions={({ navigation, route }) =&gt; ({
      title: 'My app',
      headerTransparent: true,
      headerBlurEffect: 'light',
      headerLargeTitleShadowVisible: false,
      headerLargeTitle: true,
      headerSearchBarOptions: {
        autoCapitalize: 'none',
        obscureBackground: false,
      },
    })}
  &gt;
    &lt;HomeStack.Screen
      name=&quot;ScreenA&quot;
      component={ScreenA}
    /&gt;
  &lt;/HomeStack.Navigator&gt;
  </code></pre>
  <p>ScreenA returns:</p>
  <pre><code>const headerHeight = useHeaderHeight();
  
  return (
  &lt;&gt;
    {isReady &amp;&amp; (
      &lt;ScrollView
        contentInset={{
          top: headerHeight * 2,
        }}
        style={{
          backgroundColor: 'red',
        }}
      &gt;
        &lt;View.Base
          style={{
            height: 900,
            width: '100%',
            backgroundColor: 'yellow',
          }}
        /&gt;
      &lt;/ScrollView&gt;
    )}
  &lt;/&gt;
  );
  </code></pre>
  <p>This currently produces the following output:</p>
  <p><a href="https://cleanshot-cloud-fra.accelerator.net/media/8544/6OXRJom9qBJA7RFP6kUsQkvSXjtTwPmxTGC2SwDm.mp4" rel="nofollow noreferrer">Video example</a></p>
  <p>As you can see, the header collapses way too fast and I am unable to figure out why, sadly.</p>
  <p>When setting <code>headerTransparent</code> to false, it has an issue with the collapsing effect to not &quot;snap&quot;, so something's off here.</p>
  <p>Also, the headerHeight doesn't seem to return the correct height for large title-headers. Not sure of that has something to do with this.</p>