Skip to content

[ViewPagerAndroid] Incorrect behaviour of Text with onPress #18068

Closed
@JasperH8g

Description

@JasperH8g

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 8.2.1
Yarn: 0.27.5
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.52.2 => 0.52.2

Steps to Reproduce

  • Render a ViewPagerAndroid with a nested Text
  • Add an onPress to the deepest Text
  • Press the text
  • Swipe away
  • Release the text

Expected Behavior

The onPress should not be fired.

Actual Behavior

The onPress is fired.

Reproducible Demo

https://snack.expo.io/@jpunt/viewpagerandroid-bug

viewpagerandroid

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions