This repository was archived by the owner on Jun 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
[BUG] Error Evaluating JS #56
Copy link
Copy link
Open
Description
New issue checklist
- I have reviewed the
READMEand documentation - I have searched existing issues and this is not a duplicate
- I have attempted to reproduce the issue and include an example project.
General information
@superwall/react-native-superwallversion: 2.0.3- React Native version: 0.76.1
- Expo version (if applicable): 52.0.37
- Platform affected (Android and/or iOS): Android
- OS versions affected, e.g. iOS 18.3.1 (if applicable):
- Devices/Simulators affected:
- Reproducible in the example app? (Yes/No): No
- Related issues:
Describe the bug
When i set a log handler in setDelegate, my console is filled with
Error Evaluating JS, Info: {"message":"\n window.paywall.accept64('W3siZXZlbnRfbmFtZSI6InB...
I think the problem is that window.paywall is not defined.
Steps to reproduce
- Set
Superwall.shared.setDelegate({
handleLog(
level,
scope,
message,
info,
error
) {
if (level == "DEBUG") return;
console[level.toLowerCase()](`[Superwall:${scope}], Message: ${message}, Info: ${JSON.stringify(info)}`)
if (error && error !== "null") console.error(error);
}
})- inspect logs
Other Information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels