How to implement device-specific element visibility while integrating Memberstack 2.0 with React Native?
Also, i know this isnt directly related to memberstack but do you know how to hide an element on phones but show on devices that are bigger than phones?
Comments
4 comments
Hey Felix Gräf, if you are using Webflow, you can do that by selecting that particular device view and then changing its Display as highlighted in the screenshot. You can set it for tablets / mobiles as well. Hope this helps.
Hi Everyone!
I am just trying to integrate Memberstack 2.0 with react native, and as you can imagine there are lots of issues as it's not build for mobile frameworks, if anyone has any experience in this then please Let me know!!
1.Plan Listing: How can I fetch or list the subscription plans created in the Memberstack dashboard within my app? Is there an API or method to do this?
2.Payment Management: How do I handle payments for paid plans? Specifically, how can I initiate and manage Stripe payments via Memberstack on the mobile app side?
Hello,I’m not too familiar with React Native, so I can’t say for sure if the libraries are compatible or how to manage workarounds. The Memberstack DOM library is built for web apps, but I can guide you on what needs to be done so you can adapt it to your framework.So, for listing the available plans you can use the method
getPlans()To initiate the payment of a plan, Memberstack uses
purchasePlansWithCheckout(options)for users that had not yet subscribed to any paid plan yet orlaunchStripeCustomerPortal(options)method, to update billing and upgrade/downgrade plansThese two methods redirect the user to a Stripe-hosted page where the user can add their payment methods. This ensures that your site never has access to any personal payment data.You can find more info about all the methods available in the frontend here: https://developers.memberstack.com/docs/dom-front-end-package
That's the challenge! DOM packages don't work in react native 😔
Please sign in to leave a comment.