mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-28 16:07:56 +03:00
fixed hiding bug caused by setTimeout
This commit is contained in:
parent
370b624a12
commit
1aabca8669
@ -89,7 +89,7 @@ const ForegroundNotification = ({ remoteMessage }: Props) => {
|
||||
};
|
||||
|
||||
const hide = async () => {
|
||||
if (isVisible && containerRef.current && containerRef.current.fadeOutUp) {
|
||||
if (containerRef.current) {
|
||||
await containerRef.current.fadeOutUp(300);
|
||||
|
||||
setIsVisible(false);
|
||||
|
Loading…
Reference in New Issue
Block a user