mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-27 23:46:34 +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);
|
||||
@ -124,7 +124,7 @@ const ForegroundNotification = ({ remoteMessage }: Props) => {
|
||||
|
||||
|
||||
return (
|
||||
isVisible &&
|
||||
isVisible &&
|
||||
<AnimatedView
|
||||
ref={containerRef}
|
||||
style={styles.container}
|
||||
|
Loading…
Reference in New Issue
Block a user