react-native-purchases: PaywallFooterContainerView not working with New Architecture

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 ๐Ÿ˜ƒ

IMG_576777C27B7D-1

    <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)

Most upvoted comments

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 ๐Ÿ˜ญ

@joshdholtz this issue is still a blocker for us as in our use case: we use a custom paywall with animations that is not supported in Paywalls v2 so the Footer only is needed for us. Do you have any plans to support the Footer on the new architecture? Or is it a low prio now that you released Paywalls v2?

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:

  • There is no equivalent of reactSetFrame as the new architecture introduced a new renderer called Fabric which changes the mindset on how to render a native component in RN.
  • This renderer provides a more โ€œdirectโ€ connection between JS and native.
  • You may have read it already, but I found an example on how to display a centered text in iOS with the new Fabric renderer

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 reactSetFrame is 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:

  • With the new arch enabled on RN 0.76.6, I reproduce the problem
  • Without the new arch enabled on RN 0.76.6 I donโ€™t reproduce the problem

@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