question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Images are not visible in ListItem component via url

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior: It only shows a gray bar but nothing else image

Expected behavior: It should show the image provided from Image component

Related code:

Providing my image to my list component as an object like this (just a wrapper to make it more compatible with my app):

icon: () => <Image source={{ uri: user.actor_details.profile_picture }} style={{ width:50, height:50 }}/>


You can see my wrapper component for list here

Other information:

OS, device, package version Tested on LG G7 ThinQ on Android 9.0 also on Emulator which runs on Android Q, both gives me same results.

"react-native-ui-kitten": "^4.1.0",
"react-native": "0.59.3",
"react": "16.8.3"
"@eva-design/eva": "^1.0.1"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
Floriduscommented, Oct 25, 2019

I had the same error with an external image. I found out that it was the style that was given. Each picture was filled with the tintColor. So I deleted the tintColor style and now it works.

That is the style for the “icon”: { width: 40, height: 40, marginHorizontal: 8, tintColor: '#8F9BB3' }

So I removed the tintColor.

renderIcon = (style, uri) => {
    delete style.tintColor
    return (
      <Image
        style={style}
        source={{ uri }}
      />
    )
  }
0reactions
jaksmcommented, Jan 28, 2020

I had the same error with an external image. I found out that it was the style that was given. Each picture was filled with the tintColor. So I deleted the tintColor style and now it works.

That is the style for the “icon”: { width: 40, height: 40, marginHorizontal: 8, tintColor: '#8F9BB3' }

So I removed the tintColor.

renderIcon = (style, uri) => {
    delete style.tintColor
    return (
      <Image
        style={style}
        source={{ uri }}
      />
    )
  }

Also, this is useful when you want to adjust image size, just delete style.width & style.height

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images via URL not displaying on custom list - Get Help - Adalo
My images display via URL fine when I use a regular list, however, they do not show if I am using a custom...
Read more >
Images from URI source not showing in React Native
FlatList used to list the items in 3 columns via photo id. Screenshot shows the 3 columns but no photos. Photo.js const url...
Read more >
Multi-image field overview | Webflow University
The Multi-image Field is a Collection field that allows you and your collaborators to upload multiple images for your Collection items and use...
Read more >
What are impressions, position, and clicks? - Google Support
This page helps explain impressions, position values, and click data as used in Search Console, and especially in the Performance reports.
Read more >
Image List React component - Material UI - MUI
Quilted image lists emphasize certain items over others in a collection. They create hierarchy using varied container sizes and ratios. Breakfast; Burger ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found