1 thought on “Prevent deep linking to third party applications

  1. I was having a similar problem when WebView was trying to open plaidlink://* and I wasn’t able to control it. And I noticed that if you add the 3rd party protocol to the originWhitelist, you’d be able to control it inside the onShouldStartLoadWithRequest function:

    Something like:

      source={{ uri: generateLinkInitializationURL() }}
      onShouldStartLoadWithRequest={request => {
        if (request.url.startsWith('plaidlink')) {
          return false;
        return true;
      originWhitelist={['https://*', 'plaidlink://*']}

Comments are closed.