Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onLongPress for Text is not working #24081

Closed
chppeng opened this issue Mar 21, 2019 · 2 comments
Closed

onLongPress for Text is not working #24081

chppeng opened this issue Mar 21, 2019 · 2 comments

Comments

@chppeng
Copy link

chppeng commented Mar 21, 2019

🐛 Bug Report

After upgrading from React Native 0.58.6 t0 0.59.0 or 0.59.1, onLongPress for Text is not working. I tested in IOS, it is not working. But it works well with 0.58.6

To Reproduce

Use Text with onLongPress in React Native 0.59.0 or 0.59.1 app,

Code Example

<Text style={styles.welcome} onLongPress={()=>{alert('TestA')}}>Welcome to React Native!</Text>

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 24.48 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.13.0 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 26, 28
Build Tools: 27.0.3, 28.0.3
System Images: android-24 | Google APIs Intel x86 Atom_64, android-26 | Google APIs Intel x86 Atom_64, android-26 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.1 => 0.59.1

@danilobuerger
Copy link
Contributor

Duplicate of #24001 ?

@Salakar
Copy link
Contributor

Salakar commented Mar 21, 2019

Hey @chppeng 👋 - thanks for reporting. As @danilobuerger mentioned; this is a duplicate of #24001 (Text internally consumes Touchable). I will close this issue now - please follow up on the other issue.

@Salakar Salakar closed this as completed Mar 21, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Mar 21, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants