Skip to content

[Bug]: BottomSheet children are remounted when toggling enableContentPanningGesture #2574

@mattijsf

Description

@mattijsf

Version

5.2.6

Reanimated Version

4.1.5

Gesture Handler Version

2.29.1

Platforms

iOS

What happened?

Toggling enableContentPanningGesture on causes children to be unmounted / remounted

Reproduction steps

  1. Create a BottomSheet
  2. Toggle enableContentPanningGesture: true > false
  3. Notice that the children are unmounted / mounted

Reproduction sample

https://snack.expo.dev/@mattijsf/bottom-sheet-remount-bug

Relevant log output

TestView Mounted!
enableContentPanningGesture changed to: true
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: false
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: true
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: false
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: true
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: false
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: true
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: false
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: true
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: false
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: true
TestView Unmounted
TestView Mounted!
enableContentPanningGesture changed to: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions