mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-29 08:32:15 +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 () => {
|
const hide = async () => {
|
||||||
if (isVisible && containerRef.current && containerRef.current.fadeOutUp) {
|
if (containerRef.current) {
|
||||||
await containerRef.current.fadeOutUp(300);
|
await containerRef.current.fadeOutUp(300);
|
||||||
|
|
||||||
setIsVisible(false);
|
setIsVisible(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user