react-native-purchases: PaywallFooterContainerView not working with New Architecture
- I have updated Purchases SDK to the latest version
- I have read the Contribution Guidelines
- I have searched the Community
- I have read docs.revenuecat.com
- I have searched for existing Github issues
Describe the bug
Hello there ๐! I tried to implement PaywallFooterContainerView with ReactNative as described in the docs. Unfortunately the footer is cut off at the bottom, not clickable and not movable at all. Anyone figured out how this works? I also saw some open discussions about the footer not being supported for react native since start at all?
Thanks ๐
<View style={{ flex: 1 }}>
<RevenueCatUI.PaywallFooterContainerView>
<Text>
Your Custom Paywall Design
</Text>
</RevenueCatUI.PaywallFooterContainerView>
</View>
also tried it without a parent view.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 19 (4 by maintainers)
Hi @joshdholtz ๐ Any updates on this issue?
I have seen Paywalls v2 are now released in beta for react-native and seems to support the new architecture, congrats for the launch! ๐
However, as Paywalls v2 do not support Footer Paywalls, this does not solve this issue ๐ญ
Yes, I am at the same situation either, your Paywalls v2 offering does not solve all my paywall needs, my custom implementation has much detailed customizations but I am stuck with v2 and patiently waiting new footer paywall view too.
@christophemenager Oh, we did some more investigation today and it turns out that is not the issue and I was just having Friday brain moment ๐ซ
We are still looking into and will still reach out to some React Native maintainers that we know! Will report back as soon as we can ๐ช
@christophemenager Thanks for looking into this and diagnosing! We will start looking into fixing this on our side today and will try to get a fix out ASAP
@joshdholtz thanks for the investigation and the update ๐
Itโs a shame that the react-native team didnโt document the migration from the old renderer (using
reactSetFrame) to the new one.My understanding is:
reactSetFrameas the new architecture introduced a new renderer called Fabric which changes the mindset on how to render a native component in RN.I hope those hints could help you, I am not an iOS engineer so maybe you already knew all of that!
Hope you will find a solution soon as the new architecture is becoming more and more popular as the RN team is pushing for adoption ๐
@christophemenager @garrettwesley So we did find why this is happening and its because the
reactSetFrameis no longer being used (which we used to properly place the footer position).There is a Reddit thread (with no answers) of somebody asking how support this. We will keep monitoring that thread for answers while also trying to explore solutions of our own.
I was hoping this was going to be a quick fix from old API to new API but donโt have a clear path ATM ๐คทโโ
So in the mean timeโฆ
RCT_NEW_ARCH_ENABLED=0 pod install(or an equivalent) is the current workout ๐ฌI think I just found the source of the problem: the new architecture:
@garrettwesley @Jethro87 @marcibk can you tell us if you have the new arch enabled in your project?
I tried adding a paddingBottom as well and that works as a quick hack, but none of the buttons are pressable making the Footer completely unusable