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.

onPress just do not works on Component Buttons

See original GitHub issue

I configurate everything, but when i use BaseButton, RectButton or BorderlessButton, they dont fire the onPress method. Rly strange i tap and they animate.

What could be the cause?

RN: 0.51.0 React: 16.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
luoyushouchaicommented, Nov 1, 2018

@osdnk @vlkosinov RectButton triggers onPress if used in FlatList renderItem, but not in SectionList renderItem! Test in Android platform , not sure in ios platform!

0reactions
AlexHooperDevcommented, Nov 25, 2020

bump

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native Button onPress not working - Stack Overflow
I'm trying to bind the function handleClick to my button onPress . But it's not working ...
Read more >
onPress just do not works on Component Buttons #291 - GitHub
I configurate everything, but when i use BaseButton, RectButton or BorderlessButton, they dont fire the onPress method.
Read more >
Button - React Native
Button. A basic button component that should render nicely on any platform. Supports a minimal level of customization.
Read more >
React Native Buttons From Basic to Advanced | Waldo Blog
Learn all about buttons in React Native, the various types of native buttons, and which button components to use when.
Read more >
React Native touchable vs. pressable components
button, { backgroundColor: '#22bb22' }]} onPress={onTap} activeOpacity={0.6} disabled={true}> <Text>Green button (disabled)</Text> </ ...
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