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.

Clickable image on the cards

See original GitHub issue

Hi, I was trying to add click action on the image of a card component.

Here is my code :

<View style={styles.container}>
  <FlatList
      data={ this.state.interests }
      extraData={ this.state.showDetails }
      renderItem={
          ({item}) => {              
              return (
                  <Card
                      image={{ uri: item.picture }}
                      imageStyle= {styles.image}
                      backgroundColor='white'
                  >
                      {this.renderInterests(item)}
                  </Card> 
              );
          }
      }
      keyExtractor={(item, index) => index}
  />
 </View>

It seems from the documentation there isn’t specific property on the card component. I definitely want to use the card’s property image because I want to keep the header image style.

How I can do that ? I need your help please !

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
givelicommented, Jan 15, 2018

Thank you so much for your help ! I locally add a touchable around the image on Card.js ! It works ! Thank you ! I will add a pull request as soon as possible.

1reaction
iRoachiecommented, Oct 2, 2019

Yea it’s still open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AnyImage.io - Turn Any Image into a Clickable Link!
Create clickable social cards for Facebook, Twitter, LinkedIn and Google+ in seconds linking to any web ... Turning Your Images into Clickable Social...
Read more >
HOW TO CREATE A CLICKABLE SOCIAL CARD OR IMAGE ...
A social clickable card is a way to show off your image, title, and description on social media. These types of posts tend...
Read more >
How to Create Clickable Social Cards in Seconds [Infographic]
With this free online tool, it will take you just seconds to create an unlimited number of clickable social cards linking to any...
Read more >
How to Create Clickable Social Cards in Seconds - Spiceworks
What sets them apart from regular images is that clicking on any part of the social card will take you directly to the...
Read more >
Clickable Images - Search Product Cards - Yext Hitchhikers
Is there a way to make the images of product cards clickable without using the ProductProminentImageClickable card type?
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