Skip to content

[TouchableOpacity] does not work well inside Text #1863

@jtremback

Description

@jtremback

I'd like to use TouchableOpacity to implement a link-like thing in a Text element. However, there are two issues:

  • The Opacity doesn't change when the element is Touched.
  • Padding on the text element will offset the text inside the TouchableOpacity, but not the touch target.

Here is a demonstration of both issues: https://rnplay.org/apps/eOeLxg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions