stereobooster / react-ideal-image

🖼️ An Almost Ideal React Image Component
https://github.com/stereobooster/react-ideal-image/blob/master/introduction.md
MIT License
3.26k stars 74 forks source link

Hide Error click to Load Image if image failed to load #128

Open aj019 opened 5 years ago

aj019 commented 5 years ago

Relevant code or config

What you did:

What happened:

screen shot 2018-11-21 at 4 50 17 pm

Reproduction repository:

Problem description: Error click to Load is ruining the UI

Suggested solution: OPtion to hide the error message

stereobooster commented 5 years ago

But how user will recognise there is an error? I'm not sure I understand full context

aj019 commented 5 years ago

What i mean is that there should be a way to customize the error message UI. So that the developer can create its own UI for error message.

stereobooster commented 5 years ago

There is a way to customize it, but there is no tutorial for it, take a look at source code.

Also this is technically possible, current implementation is not the nicest way. https://github.com/stereobooster/react-ideal-image/issues/81 should improve this