Skip to content

Picker not responding to touch correctly inside Touchable #25203

Closed
@robert-nash

Description

@robert-nash

I am having an issue when using a Picker inside two TouchableWithoutFeedbacks. This setup means that the far right of the Picker component (around the caret) does not reliably respond to touch to bring up the picker dialog as it does when the Touchables are removed.

(The touchables are being used to detect a touch outside of a custom modal which closes the modal.)

React Native version: 0.57.1
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Memory: 10.71 GB / 19.88 GB
Binaries:
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

Steps To Reproduce

  1. Place a picker component inside a TouchableWithoutFeedback inside a view which is itself inside another TouchableWithoutFeedback.
  2. Touch the picker caret

Describe what you expected to happen:

I expected the picker dialog to appear when I clicked the caret.

Example showing this bug:
https://snack.expo.io/@robertnash/intelligent-mixed-nuts

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugStaleThere 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