Question

Does RevenueCatUI.PaywallFooterContainerView return a promise

  • 16 February 2024
  • 3 replies
  • 51 views

Badge +3

I was just wondering what <RevenueCatUI.PaywallFooterContainerView> returns. I would like to use this if a promise or listener is available to use my own global subscription state. I'm aware of PAWALL_RESULT, but how can I use it with the <RevenueCatUI.PaywallFooterContainerView>. And if for whatever reason, I can’t use <RevenueCatUI.PaywallFooterContainerView> to return the promise and I must use RevenueCatUI.presentPaywall(), how can I hide the footer. Thanks 

 


This post has been closed for comments

3 replies

Badge +3

in https://github.com/RevenueCat/react-native-purchases/blob/3fd6e101e23a49f039575742ddfdad84dee63ca1/react-native-purchases-ui/src/index.tsx#L81

it even shows we can use the callbacks and props that doesnt even work. Please help


<RevenueCatUI.PaywallFooterContainerView
onPurchaseCompleted={() => console.log("Purchase completed")}
/>
 

Badge +3

Solved 👍

Userlevel 4
Badge +8

Hi, to hide the footer you can just remove .paywallFooter(). You’ll want to use conditionals to know when to hide/display it: https://www.revenuecat.com/docs/tools/paywalls/displaying-paywalls#how-to-display-a-footer-paywall-on-your-custom-paywall