addEventListener on url in React Native Web

Viewed 490

I am trying to have a function called on an event listener in React Native Web.

I have this code in my class constructor:

Linking.addEventListener('url', this.onOpenURL);

And then later on in my program, I use:

Linking.openURL(url);

This opens the URL in question, however the this.onOpenURL never runs.

Is there a way to make this happen specifically on React Native Web?

0 Answers
Related