Catch auto renew event - in app purchase - Android

I have similar issue like this.

I am testing subscription in in app purchase lib for Android. When I subscribe, it works well. Also I got email notifications for auto renewals. But I can not catch any event using InAppPurchases.setPurchaseListener() function.
I put setPurchaseListener function inside the useEffect hook in App.js. I think I have put it globally.
Please show me errors if I have done.

Thank you,