Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open local image on Card component #212

Open
Danielgb23 opened this issue Jun 17, 2020 · 5 comments
Open

Can't open local image on Card component #212

Danielgb23 opened this issue Jun 17, 2020 · 5 comments

Comments

@Danielgb23
Copy link

I can't display an image either in the image or avatar slot of the Card component if it's local. Images from urls work fine but local ones don't.

Smartphone (please complete the following information):

  • Device: moto g(6)
  • Type of device:Physical
  • OS: android 9
  • React-Native version: 0.61.4
  • Expo version: 3.21.5
@ozankonur
Copy link

did you find a solution ?

@Danielgb23
Copy link
Author

Not really. I used other component

@benedsmith
Copy link

benedsmith commented Feb 5, 2021

Had this issue also, using Expo Go iOS. Web URLs work but local files simply show as blank. No exception thrown from what I can see

edit: more info

'image=' won't show (appear in Expo iOS) my locally stored image (under assets/image.jpeg) no matter how much I play with the path settings.

<Card flex borderless shadowColor={theme.COLORS.BLACK} style={styles.card} title="Jane Doe" caption="139 minutes ago" location="Los Angeles, CA" avatar="http://i.pravatar.cc/100?id=pineaple" imageBlockStyle={styles.cardNoRadius} image="../assets/image.jpeg" />

@sojharo
Copy link

sojharo commented Aug 17, 2021

Has anybody solved it? I am having the same issue on android as well.

@mohalenezi
Copy link

Same issue here and the Only way worked with me was to right click on the image file and click copy path.. paste it as the image source.. then finally its shown but i dont know if this is going to function after the deployment or not… good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants