Skip to content

RevenueCatUI.Paywall windowRecomposer error #1162

@EmreKorpe

Description

@EmreKorpe

Hi, In my application, I was showing RevenueCatUI.Paywall in the react navigation page. But I keep getting this error on Android.
This my code;

import React from 'react';
import { SafeAreaView, StatusBar, TouchableOpacity, View } from "react-native";
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import RevenueCatUI from "react-native-purchases-ui";
import { customColors } from '../../utils/Constant';
import Fonts from '../../../assets/fonts';

const Paywall = ({ navigation }: any) => {

return (
    <View style={{
        flex: 1
    }}>
        <RevenueCatUI.Paywall options={{ fontFamily: Fonts.Family.SemiBold }} />
        <TouchableOpacity activeOpacity={0.9} style={{ width: 50, height: 50, position: 'absolute', right: 10, top: 40, alignItems: 'center', justifyContent: 'center' }}
            onPress={() => navigation.goBack()}>
            <Icon name='window-close' size={25} color={customColors.btnColor} />
        </TouchableOpacity>
    </View>
)

}
export default Paywall;

The Paywall page works erratically and loads once and then gives this error.
cannot locate windowRecomposer;View com.revenuecat.purchases.ui.revenuecatui.views.PaywallView

"react-native-purchases": "^8.4.0",
"react-native-purchases-ui": "^8.4.0",

I'm having the same problem in 8.5.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions