vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
850 stars 335 forks source link

Avoid use of global fetch #163

Open jgornick opened 5 years ago

jgornick commented 5 years ago

Currently, the library uses a global fetch implementation. However, in the node world, the global doesn't include fetch.

The library should be updated to use it's own fetch implementation (e.g. cross-fetch).

In order to use this library, I had to expose cross-fetch as a global and ignore a type error because fetch is not assignable on the global object.

Thanks!