TouchableWithoutFeedback onLongPress wont work some android devices
See original GitHub issueTouchableWithoutFeedback 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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can follow this PR ( https://github.com/facebook/react-native/commit/59e50237bff9521d2b78d7576abf4e23d844ac1b ).
Although Ideal Situation would be upgrading .
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.