Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

[BUG] Error Evaluating JS #56

@orestis-z

Description

@orestis-z

New issue checklist

  • I have reviewed the README and 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-superwall version: 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

  1. 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);
      }
})
  1. inspect logs

Other Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions