react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Open External Browser from App

Open JijoBose opened this issue 6 years ago • 1 comments

How can I open an External Browser when running react-native-web inside a Mobile App in its WebView?

Code

  const openLink = async url => {
    const supported = await Linking.canOpenURL(url)
    if (supported) {
      await Linking.openURL(url)
    }
  }

The above code however redirects to a page within the WebView and not from an external Browser (eg, open with Chrome, etc)

JijoBose avatar Nov 24 '20 06:11 JijoBose

Duplicates #1544

necolas avatar Nov 24 '20 16:11 necolas