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.

PlaceholderContent in Image doesnt show on android

See original GitHub issue

Sorry guys, I need your help with the issue about PlaceholderContent in Image doesnt show on android which is really confused 😦, I got the very small code like


      <Image
        source={{uri: undefined}}
        style={{height:64, width:64}}
        onPress={toggleOverlay}
        PlaceholderContent={<Text>test</Text>}
      />

_ Issue: Doesnt show placeholderContent for android.

_ Expected: it should show placeholderContent for both android and ios.

Item-0_and_Item-0_and_Item-0

_ Environment: +“react-native-elements”: “^2.3.2”, +“react-native”: “0.63.2”,

Hope to receive you guys feedbacks soon

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
infothiencommented, Sep 13, 2020

thank you for your help @pranshuchittora, I appreciated

1reaction
pranshuchittoracommented, Sep 13, 2020

Oh, I see. I will try to work on a possible fill. Until then you try the workaround method of pre-paring the prop object and using object spread to inject prop conditionally. Though not the appropriate one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Glide not loading real image and stuck with placeholder
So the trick is placeholder is set via setImageDrawable() so the ImageView will just display it as usual, but you tell Glide to...
Read more >
How to use SVG as a Placeholder, and Other Image Loading ...
Placeholder : Imagine that we are displaying a user's profile image. We might want to display a silhouette in the background. This is...
Read more >
Displaying Images with the Glide Library - CodePath Cliffnotes
Open up your static placeholder or error images and make sure their dimensions are relatively small (< 500px width). If not, resize those...
Read more >
Android Compose: placeholder + crossfade = the image isn't ...
On Jetpack Compose, when displaying an image with a placeholder and crossfade, the image isn't cropped. ... The placeholders should appear clipped ...
Read more >
Glide not loading real image and stuck with placeholder
Android : Glide not loading real image and stuck with placeholder [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
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