mlynch / nextjs-tailwind-ionic-capacitor-starter

A starting point for building an iOS, Android, and Progressive Web App with Tailwind CSS, React w/ Next.js, Ionic Framework, and Capacitor
https://dev.to/ionic/build-mobile-apps-with-tailwind-css-next-js-ionic-framework-and-capacitor-3kij
MIT License
1.69k stars 341 forks source link

Images not showing in iOS #21

Closed taylorhlabs closed 3 years ago

taylorhlabs commented 3 years ago

I have confirmed the images are showing in standard web build, but none of the images are showing in iOS simulator (the 3 blog images and author image). This is my first time playing with Capacitor and Ionic so it's possible I've missed a standard setting somewhere to enable images but haven't found anything in the docs. Any help to "enable" the images would be much appreciated. Thanks!

taylorhlabs commented 3 years ago

Images were not showing because they were being handled using Next's <Image> component which has some limitations when used with Next's export command. I switched to using standard <img /> tags and images are working in iOS.