title: Open link in current window react-native Linking
body: <p>I'm trying to use react-native for a web\app. I would like to create a simple link to a different screen, but using urls and not elements.</p>
  <p>I managed to get it to work with 2 annoying caviats:</p>
  <ol>
  <li>the tail of the url is showing for a second and then disappears from the browser url input (even though <code>window.location.href</code> and <code>Linking.getInitialURL()</code> does return the full link</li>
  <li>the <code>Linking.openURL</code> only opens new tabs, and I would like it to stay in the same tab when clicking.</li>
  </ol>
  <p>Screen 1:</p>
  <pre><code>import { Linking, StyleSheet, Text, View } from &quot;react-native&quot;;
  import React from &quot;react&quot;;
  import WebView from &quot;react-native-webview&quot;;
  
  const Infromation = () =&gt; {
    const uri = &quot;links&quot;;
    return (
      &lt;Text
        onPress={() =&gt; {
          Linking.openURL(&quot;feed&quot;);
        }}
      &gt;
        AboutReact
      &lt;/Text&gt;
    );
  };
  
  export default Infromation;
  
  const styles = StyleSheet.create({});
  </code></pre>
  <p>That link opens the feed screen, but in a new tab and url tail not showing:
  <a href="https://i.stack.imgur.com/BESIP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BESIP.png" alt="enter image description here" /></a></p>
  <p>Feed screen code:</p>
  <pre><code>import {
    KeyboardAvoidingView,
    Linking,
    StyleSheet,
    Text,
    TextInput,
    TouchableOpacity,
    View,
  } from &quot;react-native&quot;;
  import React, { useEffect } from &quot;react&quot;;
  
  const Feed = () =&gt; {
    const url = new URL(window.location.href);
    Linking.getInitialURL().then((url) =&gt; {
      console.log(url);
    });
  
    return (
        &lt;Text&gt;{url.href}&lt;/Text&gt;
    );
  };
  
  export default Feed;
  </code></pre>