alexcorvi / heic2any

Converting HEIF/HEIF image formats to PNG/GIF/JPEG in the browser
https://alexcorvi.github.io/heic2any/
MIT License
585 stars 74 forks source link

will this work on react native? #21

Closed axeljeremy7 closed 1 year ago

elimisteve commented 2 years ago

It's a pure JS library and works in the browser, and thus doesn't rely on any server-side/Node libraries, so it should!

hungtooc commented 1 year ago

It's a pure JS library and works in the browser, and thus doesn't rely on any server-side/Node libraries, so it should!

have you ever test it on react native? I'm facing error https://github.com/alexcorvi/heic2any/issues/47#issue-1599485161

elimisteve commented 1 year ago

@hungtooc No sorry I haven't tested this on React Native. Just this week my team is doing a bit with React Native and we're having to polyfill shit to make some assumed-to-be-running-in-a-web-browser JavaScript run outside the browser.

elimisteve commented 1 year ago

(To be clear: we're importing other libraries -- not this one -- into our React Native project, so I don't know what polyfilling this particular library may need, sorry!)

alexcorvi commented 1 year ago

The library requires a full browser environment with DOM api to work