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] Superwall.shared property not recognized in React Native SDK #92

@midwid

Description

@midwid

New issue checklist

General information

  • @superwall/react-native-superwall version: 2.1.4
  • React Native version: 0.76.9
  • Expo version (if applicable): 52
  • Platform affected (Android and/or iOS): BOTH

Describe the bug

When using the Superwall React Native SDK, TypeScript reports that the shared property does not exist on the Superwall type. This occurs when trying to access Superwall.shared.subscriptionStatus().

and when I run the app I have this error :
ERROR Warning: TypeError: _reactNativeSuperwall.default.shared.subscriptionStatus is not a function (it is undefined)

Steps to reproduce

Attempt to access the subscription status using: const status = Superwall.shared.subscriptionStatus();

TypeScript will report the error: Property 'shared' does not exist on type 'Superwall'

Expected Behavior:

TypeScript should recognize Superwall.shared as a valid property
subscriptionStatus() should be accessible through the shared property

So I can check the sub status of my users..

Actual Behavior:

TypeScript error: Property 'shared' does not exist on type 'Superwall'
Runtime error: TypeError: _reactNativeSuperwall.default.shared.subscriptionStatus is not a function (it is undefined)

Code fails both type checking and runtime execution

Thanks

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