Skip to content

Removing items with LayoutAnimation causes adjacent views/texts to disappear on Android #11828

@vinceyuan

Description

@vinceyuan

Description

When remove items with LayoutAnimation, the adjacent views/texts should not be impacted. But they disappear on Android.

In the following screenshot of the sample app, we can see some texts/buttons disappeared when we press Remove with opacity animation button and Remove with scaleXY animation button. I found this issue when I worked on #11769.

Screenshot

Reproduction

Reproduced on rnplay.org https://rnplay.org/apps/JbdOpQ
The sample project I created: https://github.com/vinceyuan/ReactNativeOpacityBugDemo

Solution

N/A

Update on Jan 18, 2017:
I figured out a solution. See below.

Additional Information

  • React Native version: 0.33+
  • Platform: Android
  • Operating System: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions