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.

Carouse Item can't handle press event

See original GitHub issue
<View key={index} style={styles.slide}>
                <TouchableOpacity style={styles.slideInnerContainer} onPress={this.gotoPay} >
                    <Image
                        source={{ uri: item.url }}
                        style={styles.image}
                    />
                </TouchableOpacity>
 </View>

here is the renderItem code, when I click the item , it didn’t give me any response

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
yjb94commented, May 22, 2019

@oferRounds check your renderItem function. if it’s somewhat like _renderItem ({item, index}) it should be changed like _renderItem = ({item, index}) =>

2reactions
alexlevy0commented, Jul 18, 2018

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't use event handler for carousel-item #1525 - GitHub
when I click on a carousel item there is nothing happen, but it works fine for other components such as card component. What...
Read more >
Can't click on the links of the carousel posts - Stack Overflow
Consider marking event handler as 'passive' to make the page more responsive. ... Recommendations Add the passive flag to all of the event ......
Read more >
Carousel - Bootstrap
A slideshow component for cycling through elements—images or slides of text—like a carousel.
Read more >
7 Ways to Use Facebook Carousel Posts
Discover how to create Facebook carousel posts from scratch to capture attention, drive engagement, and get more clicks and conversions.
Read more >
How to Use Instagram Carousels to 10x Engagement [Guide]
Hootsuite's own social media team finds that, on average, their carousel posts ... a geotag, and account and product tags on each image...
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