Skip to content

Commit

Permalink
fix: notification not hiding when hideNotification is called immediat…
Browse files Browse the repository at this point in the history
…ely after showNotification
  • Loading branch information
seniv committed Jan 20, 2025
1 parent a80bb28 commit aed3e1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/NotifierRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ const NotifierRendererComponent = forwardRef<
}));

useEffect(() => {
// if "hideNotification" method was called before show notification animation started - ignore it.
if (isHidingRef.current) return;

Animated[notification.showAnimationConfig.method](animationState, {
useNativeDriver: true,
...notification.showAnimationConfig.config,
Expand Down

0 comments on commit aed3e1b

Please sign in to comment.