Images from assets not displayed on IonImg

Hi,
i’m trying to show an image from assets folder but is not working.

· Image path:
image

· IonImg src:

<IonImg class="logo" src="assets/images/rgm.jpg"/>

I’m newbie using Ionic, any help it’s welcome.
Thanks! :slight_smile:

Hello ! It’s more a React problem than Ionic :stuck_out_tongue: (I’m not good too)

Your images should be in /public/assets/images

I just found this link to explain public's utility and more (I didn’t read it), could be interesting

Malo

1 Like

Hi! Done!
Thanks for reply! :ok_hand:

1 Like

Hello,
I have the same image problem that is not displayed.
I created an images folder in the public / assets folder but nothing to do it does not appear in my browser.
Thank you in advance.

Well I finally found the problem.
I had put <img src="public/assets/images/punisher.jpg" />
but you just had to put <img src="assets/images/punisher.jpg" />