Closed eipark closed 2 months ago
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
I thought maybe it was the same as https://github.com/RevenueCat/react-native-purchases/issues/857, but that one was resolved by 7.18.0
. I tried testing on just that version, thinking maybe it regressed by 7.26.2
but issue remains.
Apologies, please ignore. I had a bug in my build that was making it seem like things were re-compiling but it wasn't.
@eipark I'm seeing the same error, tried npx expo run:ios, removing ios directory, clean build, still see the error.. can you share what you did to get this solved?
actually nevermind... I guess I needed to do a new dev build with eas build --profile development --platform ios
once more to get it working..
Describe the bug A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
7.26.2
react-native-purchases-ui
is not getting properly imported in my project.react-native-purchases
andreact-native-purchases-ui
to package.jsonnpx expo install
. Properly installsconst presentPaywall = async (offering?: String): Promise => {
// Present paywall logic here
let paywallResult: PAYWALL_RESULT;
if (offering) {
paywallResult = await RevenueCatUI.presentPaywall({ offering });
} else {
paywallResult = await RevenueCatUI.presentPaywall();
}
console.log('Paywall result: ', paywallResult);
switch (paywallResult) { case PAYWALL_RESULT.NOT_PRESENTED: case PAYWALL_RESULT.ERROR: case PAYWALL_RESULT.CANCELLED: return false; case PAYWALL_RESULT.PURCHASED: case PAYWALL_RESULT.RESTORED: return true; default: return false; } };
export { presentPaywall };
ERROR Error: The package 'react-native-purchases-ui' doesn't seem to be linked. Make sure:
AppRegistry.registerComponent
wasn't called., js engine: hermesIf I remove the import to my
revenueCat.ts
file, the error goes away. I am not using Expo go.Additional context Add any other context about the problem here.