beekai-oss / react-simple-img

🌅 React lazy load images with IntersectionObserver API and Priority Hints
MIT License
989 stars 41 forks source link

Support for custom options #36

Closed k-prashant closed 5 years ago

k-prashant commented 5 years ago

How should we add crossorigin="anonymous" ?

bluebill1049 commented 5 years ago

If you have time you can do a PR. https://github.com/bluebill1049/react-simple-img/blob/master/src/simpleImg.js

otherwise i will allow any custom options on the next path over the weekend. 👍

k-prashant commented 5 years ago

won't be possible for me, can you please do it, whenever possible.

bluebill1049 commented 5 years ago

sure i will get a patch over the weekend.

bluebill1049 commented 5 years ago

i have published a beta version, could you please test it out react-simple-img@1.4.6-beta.1?

and PR is here, if you want to take a look https://github.com/bluebill1049/react-simple-img/pull/37

k-prashant commented 5 years ago

Added a comment.

bluebill1049 commented 5 years ago

resolved by https://github.com/bluebill1049/react-simple-img/releases/tag/v1.5.1