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

[Android] Long press triggered instantly #4088

Closed
satya164 opened this issue Nov 12, 2015 · 3 comments
Closed

[Android] Long press triggered instantly #4088

satya164 opened this issue Nov 12, 2015 · 3 comments
Assignees
Labels
JavaScript Resolution: Locked This issue was locked by the bot.

Comments

@satya164
Copy link
Contributor

When I've a long press handler on a touchable, it fires almost instantly when running in chrome dev tools.

@bozzmob
Copy link
Contributor

bozzmob commented Nov 19, 2015

@satya164 Can you please share the code here?

@satya164
Copy link
Contributor Author

Closing in favour of #4944

@james-lopez
Copy link

maybe a obvious mistake on my part but i finally got it to work... i was not passing onLongPress a function, initially, i was declaring a method instance which caused it to fire on load.

<TouchableWithoutFeedback onLongPress={this.someHandlerFunction}/>

whereas it should be

<TouchableWithoutFeedback onLongPress={() => this.someHandlerFunction}/>

@facebook facebook locked as resolved and limited conversation to collaborators Jul 20, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
JavaScript Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants