Skip to content

Commit aed3e1b

Browse files
committed
fix: notification not hiding when hideNotification is called immediately after showNotification
1 parent a80bb28 commit aed3e1b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/NotifierRenderer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ const NotifierRendererComponent = forwardRef<
115115
}));
116116

117117
useEffect(() => {
118+
// if "hideNotification" method was called before show notification animation started - ignore it.
119+
if (isHidingRef.current) return;
120+
118121
Animated[notification.showAnimationConfig.method](animationState, {
119122
useNativeDriver: true,
120123
...notification.showAnimationConfig.config,

0 commit comments

Comments
 (0)