react-native-push-notification-popup icon indicating copy to clipboard operation
react-native-push-notification-popup copied to clipboard

Undefined is not a function evaluation (popup.show...)

Open 16ntu1120 opened this issue 3 years ago • 4 comments

Whenever I try to show the notification for the first time this error is shown up and after pressing ctrl+s the and by sending the notification again from firebase the notification will appear perfectly. I'm using functional components with hooks. let popup = useRef();

can anybody tell me the issue please? issue

16ntu1120 avatar Aug 31 '21 12:08 16ntu1120

Whenever I try to show the notification for the first time this error is shown up and after pressing ctrl+s the and by sending the notification again from firebase the notification will appear perfectly. I'm using functional components with hooks. let popup = useRef();

can anybody tell me the issue please? issue

Have you solved this problem yet?

imanhln avatar Sep 14 '21 04:09 imanhln

@nguyenanh15081998 no I couldn't have you?

16ntu1120 avatar Sep 23 '21 06:09 16ntu1120

@nguyenanh15081998 yes I resolved this issue in my case I just made popup.show to popup.current.show it worked

16ntu1120 avatar Sep 23 '21 07:09 16ntu1120

yes I resolved this issue in my case I just made popup.show to popup.current.show it worked and declare ref like this const popup = useRef("popup");

riddhi-0xblock avatar Jul 04 '22 09:07 riddhi-0xblock