Skip to content

TouchableOpacity component sometimes get stuck at low opacity #11522

@sachinrekhi

Description

@sachinrekhi

Description

After frequent use of a TouchableOpacity item in the iOS Simulator, the TouchableOpacity element now gets stuck with a low opacity instead of properly returning to full opacity.

This is a new issue as this never used to occur. I only started experiencing it when I recently upgraded my project from Reactive Native 0.34.1 to 0.39.2. My guess is this regression was introduced as part of the transition of TouchableOpacity to use the new native animation capabilities.

Reproduction

Repeatedly click on a TouchableOpacity element. After some time, you'll see that the TouchableOpacity element is stuck with a low opacity instead of returning to full opacity like it is supposed to.

In my case, here is what the normal state looks like for my sidebar toggle that is wrapped by a TouchableOpacity element:
normal

And here is what it looks like after it gets stuck in a low opacity state:
stuck

Additional Information

  • React Native version: 0.39.2
  • Platform: iOS
  • Operating System: MacOS

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