nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 181 forks source link

image is not showing on browser #121

Closed vnaeimabadi closed 2 years ago

vnaeimabadi commented 2 years ago

I add import { Image } from 'dripsy' for showing image

<Image sx={{ height: 86, aspectRatio: 2, ml: 10, }} resizeMode="contain" source={{ uri: 'http://vasfa.ir/wp-content/uploads/2020/03/Vasfa-Logo.png', }} />

but after deployment on Vercel the image is not showing.

this is web link: https://vasfa.vercel.app

vnaeimabadi commented 2 years ago

this works properly on local

https://user-images.githubusercontent.com/14070643/183421181-bb4298ec-3943-45e7-82fa-81c082cab68a.mp4

but when deploy it on Vercel it won't work properly

https://user-images.githubusercontent.com/14070643/183422135-535c9fad-4759-4d0c-81a8-c0302843a1a0.mp4

nandorojo commented 2 years ago

did you install next-image

vnaeimabadi commented 2 years ago

I am using import { Image } from 'dripsy' for showing image

vnaeimabadi commented 2 years ago

this is the repo https://github.com/vnaeimabadi/vasfa

https://github.com/vnaeimabadi/vasfa/blob/main/packages/app/features/home/screen.js

@nandorojo ?

vnaeimabadi commented 2 years ago

@nandorojo any update?

nandorojo commented 2 years ago

i am helping for free, please don't ping issues

neilgamb commented 2 years ago

@vnaeimabadi Please review this thread: https://github.com/nandorojo/solito/issues/78

Sharing your next.config.js would also help...

nandorojo commented 2 years ago

@vnaeimabadi did you end up solving this? i see the images working here: https://vasfa.vercel.app/

Screen Shot 2022-08-29 at 8 09 33 PM
nandorojo commented 2 years ago

Closing for now, but let me know if the problem persists.

vnaeimabadi commented 2 years ago

it was about blocking the link of the image from the hosting server. I fix that by changing that link. thanks

nandorojo commented 2 years ago

I'm excited to share the new Solito image component: https://solito.dev/usage/image