Rather than the onPress
event triggering when a touch is pressed onto the TouchableWithoutFeedback
component, it is triggered when a touch is released. Is this how the onPress event is supposed to work..?
Is there an event for the actual touch press rather than the touch release.
Yes, triggering the onPress
event on release is the intended behavior.
You can use onPressIn
if you want to trigger an action immediately when a button is clicked.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.