title: React Navigation 5 props.navigation.replace("component"); works the same as navigation.navigate() (Back buttons still shown in header)
body: <p>I am trying to use react-navigation 5 replace functionality, but it does not work as expected.</p>
  <p>Let's say there are three components:</p>
  <ol>
  <li><code>set-domain.js</code>,</li>
  <li><code>auth.js</code>,</li>
  <li><code>some-func.js</code></li>
  </ol>
  <p>What I am trying:</p>
  <p>in <code>set-domain.js</code> I set domain and do:</p>
  <blockquote>
  <p><code>props.navigation.navigate('Auth');</code> this navigates to <code>auth.js</code>:</p>
  </blockquote>
  <p>in <code>Auth</code> I login and do:</p>
  <blockquote>
  <p><code>props.navigation.replace('SomeFunc');</code> this should replace to <code>some-func.js</code></p>
  </blockquote>
  <p>Problem is that it does not replace, but it navigates (I have back button in header left and I can navigate back with back button). <strong>HOWEVER</strong>, if I use replace between <code>set-domain.js</code>, <code>auth.js</code> also, then it works for all screens.</p>
  <p>What I am doing wrong here? It feels, that I do not understand how replace actually works, but I couldn't find more details on this in the documentation.</p>
  <p>Thanks!</p>