blowfishxyz / blocklist

Javascript library to use Blowfish blocklists locally
https://blowfish.xyz/
MIT License
11 stars 0 forks source link

feat: make package compatible with react native #8

Closed sevazhidkov closed 1 year ago

sevazhidkov commented 1 year ago

React Native doesn't support most of the URL methods, including ability to get a hostname: https://github.com/facebook/react-native/blob/7f2dd1d49cc3c0bf5e24fdb37f6457151c1f06c4/Libraries/Blob/URL.js#L177

This PR switches usages to an NPM implementation of URL. I've also considered using a react-native-url-polyfill, but seems less elegant and still uses a new dependency.