react-native-notificated icon indicating copy to clipboard operation
react-native-notificated copied to clipboard

[BUG] Toast container is jumping when swiping

Open vlanemcev opened this issue 6 months ago • 1 comments

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

https://github.com/user-attachments/assets/d47ae93a-3111-456a-bb1b-e7bac1bc9e38

Smartphone:

  • Simulator: IPhone 15 Pro

vlanemcev avatar Aug 27 '24 15:08 vlanemcev