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.

TouchableWithoutFeedback onLongPress wont work some android devices

See original GitHub issue

TouchableWithoutFeedback onLongPress props wont work some android devices, Ios is work but some android device wont work onLongPress prop, my TouchableWithoutFeedback is

    <TouchableWithoutFeedback
      disabled={this.props.disabled}
      onLongPress={this.props.onLongPress}
      delayLongPress={2000}
      onPress={this.props.onPress}
      onPressIn={this.pressIn.bind(this)}
      onPressOut={this.pressOut.bind(this)}>
        <Animated.View style={[styles.view, this.state.style, {backgroundColor: backgroundColor}]}>
            {this.props.leftImage != undefined ? this._getImage('leftImage') : null }
            <Text
              numberOfLines={1}
              style={[styles.text, this.props.styleText]}>
                {this.props.text}
            </Text>
            {this.props.rightImage != undefined ? this._getImage('rightImage') : null }
            {this.props.children}
        </Animated.View>
    </TouchableWithoutFeedback>

React Native version: 59.1

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Kida007commented, Nov 26, 2019

You can follow this PR ( https://github.com/facebook/react-native/commit/59e50237bff9521d2b78d7576abf4e23d844ac1b ).

Although Ideal Situation would be upgrading .

0reactions
stale[bot]commented, Mar 3, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native TouchableOpacity onPress not working on ...
This gives me the behaviour of the TouchableWithoutFeedback but it works on Android. Actually I changed it to a Pressable and it worked...
Read more >
TouchableWithoutFeedback
Importantly, TouchableWithoutFeedback works by cloning its child and applying responder props to it. It is therefore required that any ...
Read more >
TouchableWithoutFeedback · React Native
TouchableWithoutFeedback. Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when...
Read more >
Box.TouchableWithoutFeedback — Bumbag
Rapidly build accessible & themeable React applications with ease.
Read more >
React Native Gesture Handler: Swipe, long-press, and more
This library exposes platform-specific (i.e., Android and iOS) native touch and gestures to React Native. Although gestures in React Native can ...
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