Skip to content

[BUG] Toast container is jumping when swiping #276

Description

@vlanemcev

Prerequisites
Please answer the following questions for yourself before submitting an issue.

  • [Yes] I am running the latest version
  • [Yes] I checked the documentation and found no answer
  • [Yes] I checked to make sure that this issue has not already been filed

Describe the bug
When I try to swipe toast in direction that I choose - the Toast come back in the initial position and start animation from it.
Check attached video.

To Reproduce
Here's my config that I use in the screen:

  useEffect(() => {
    notify("error", {
      params: {
        title: "Test error message",
      },
      config: {
        duration: 1500,
        animationConfig: MoveUp,
        notificationPosition: "top",
        gestureConfig: {
          direction: "y",
          activationDistances: 30,
        },
      },
    });
  }, [notify]);

Expected behavior
Toast will not jump in initial position and continue it's animation from the end of gesture.

Screenshots

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-27.at.17.25.00.mp4

Smartphone:

  • Simulator: IPhone 15 Pro

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions