Skip to content

[Bug]: overwriting BottomSheet.onAnimate will reset snap index to 0 on rerender #2043

@Jacky56

Description

@Jacky56

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Android, Web

What happened?

overwriting BottomSheet.onAnimate will reset snap index to 0 on rerender

Reproduction steps

overwrite onAnimate method for BottomSheet with whatever then create an event which causes a rerender

Reproduction sample

https://snack.expo.dev/@kagutron/bottom-sheet---issue-reproduction-template

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv5

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions