Skip to main content
Question

Does RevenueCatUI.PaywallFooterContainerView return a promise

  • February 16, 2024
  • 3 replies
  • 177 views

Forum|alt.badge.img+4

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

Forum|alt.badge.img+4
  • Author
  • Helper
  • 4 replies
  • February 16, 2024

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")}
/>
 


Forum|alt.badge.img+4
  • Author
  • Helper
  • 4 replies
  • February 17, 2024

Solved 👍


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 509 replies
  • February 21, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings