useUser
Manage users in Expo with the useUser hook: identify and sign out users, update attributes, and read subscription status, entitlements and customer info.
Purpose
The useUser hook provides a convenient way to manage user identity and attributes, and access user-specific information like subscription status.
Returned Values
Prop
Type
IdentifyOptions
Prop
Type
SubscriptionStatus
Prop
Type
EntitlementsInfo
Prop
Type
UserAttributes
Prop
Type
CustomerInfo
Prop
Type
Snapshots are immutable and don't auto-update — fetch a fresh one with getCustomerInfo(), or stay current via useSuperwallEvents's onCustomerInfoChange.
Usage
How is this guide?
usePlacement
A React hook that registers a placement so it can remotely trigger a paywall, gate feature access, and expose paywall-lifecycle state.
useSuperwall
Read Superwall SDK state and call actions in Expo with the useSuperwall hook, such as registerPlacement, identify, purchase and getCustomerInfo.