Skip to content
Docs

Command palette

Jump to a page or view, or find a todo by name.

Changelog

purchases

Native purchase coordination: responsibilities, supported exports and extension points.

Markdown

Purpose

A vendor-neutral interface wraps the optional RevenueCat SDK. Configuration, connection and identity changes serialize SDK operations. A generation guard prevents stale identity results from updating the current customer state. React hooks expose offerings, purchase and restore state.

Public exports

SubpathTarget
../src/index.ts
./react./src/react.ts

These paths come from packages/purchases/package.json. A . entry is the package root. Conditional targets distinguish platform or type resolution; consumers should import the subpath, not its source file.

How to extend

Register the supported SDK at native startup, configure its public key and keep identity changes inside the package. Client purchase state is presentation; server-verified Paid Access remains authoritative.

Read the native purchase coordination guide for the full flow.

Key files

Edit on GitHubDocumentation is in English.