I am implementing In App Purchase function in Expo bare workflow using Expo-In-App-Purchase library. In their documentation we need to implement setPurchaseListener
setPurchaseListener