Skip to content

onPress event does not always fire, while onPressIn and onPressOut work fine #18235

@nxz91

Description

@nxz91

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 6.10.0
Yarn: 1.3.2
npm: 3.10.10
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 1.5 AI-141.2456560

Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: 0.54.0 => 0.54.0

Expected Behavior

When I press a collapsed item (TouchableWithoutFeedback or TouchableHighlight) in the list, or when I press above or below an expanded item, the onPress event should get fired at all times, resulting in the item expanding or collapsing. At the same time, it becomes a horizontal ScrollView and scrolling on the wrapping vertical ScrollView gets disabled.

Actual Behavior

When I press a collapsed item in the list, or when I press above or below an expanded item, the onPress event only gets fired occasionally, while onPressIn and onPressOut always fire. The issue was not reproducible in the simulator, but only on the actual device as well as in the Expo Snack that is attached.

Feels super weird :-)

Steps to Reproduce

https://snack.expo.io/@leonard91/bug-report

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions