Skip to content

Opacity change mismatch between image and text on TouchableOpacity onPress #15878

@sospedra

Description

@sospedra

Is this a bug report?

I think so

Have you read the Contributing Guidelines?

Yup

Environment

  1. react-native -v: 0.47
  2. node -v: 8.0.0
  3. npm -v: 5.0.0
  4. yarn --version: 1.0.0

Then, specify:

  • Target Platform: Android
  • Development Operating System: macOS
  • Build tools: expo 20

Steps to Reproduce

  1. Place an image inside a TouchableOpacity (or TouchableNativeFeedback)
  2. Match image and button background colors
  3. Add any other component
  4. Press it on Android device

Expected Behavior

Same background colors. Just like an ios device does.

Actual Behavior

You'll notice different background colors for the Image and the rest of the button.

Android

droid

iOs

ios

Reproducible Demo

Here's a simple demo: https://snack.expo.io/H1pMmY-cZ

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