Skip to content

[Bug]: stackBehavior is not working when using with ref callback #2463

@Elabar

Description

@Elabar

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS, Android, Web

What happened?

When we pass in callback ref as ref to BottomSheetModal, the stackBehavior is not working

Reproduction steps

Working when the ref is just a normal ref:
https://snack.expo.dev/@elabar/working-example

  1. Open modal 1
  2. Open modal 2
  3. modal 1 is minimized before presenting modal 2 when the stackBehavior is switch

https://snack.expo.dev/@elabar/defect-example

  1. Open modal 1
  2. Open modal 2
  3. modal 1 is not minimized before presenting modal 2 when the stackBehavior is switch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions