I am working on android react native project and i get URL for deep linking . I am trying to find the pathname and search parameters from the following url : https://test.xxx.com/test/test?test=moduleName .
var url = URL("https://test.xxx.com/test/test?test=moduleName");console.log(url.pathName);
The code gives the following exception "Error: not implemented" . I also installed URL package from node . What am i missing ?