Skip to content

[iOS] If component unmounts while loading, it does not reappear correctly #19

@iliapnmrv

Description

@iliapnmrv

Describe the bug
Hi! Thank you for your time, this is a great library!

We've found a bug. If we remove component from tree while isLoading={true} and then set isLoading={false}.
Then there are 2 ways

  1. We add it back to component tree. And it does not appear back
  2. We do not add it back and it breaks other screens

https://github.com/iliapnmrv/rn-auto-skeleton-layout-dissapear

To Reproduce
Steps to reproduce the behavior:

  1. set isLoading={true}
  2. hide element from tree
  3. set isLoading={false}
    This also affects elements on other screens or does not appear back. Please see the video, it is self-explanatory

Expected behavior
Correct unmount, no side effects

Screenshots

android (correct) ios (breaks other screens if we do not show element) ios (element exists it does not display)
2025-12-12.13.25.10.mp4
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2025-12-12.at.13.21.05.mov
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2025-12-12.at.13.28.19.mov

Desktop (please complete the following information):

  • OS: iOS
  • RN v0.81, 0.83

Smartphone (please complete the following information):

  • OS: IOS
  • 18.0, 26.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions