diff --git a/content/docs/expo/changelog.mdx b/content/docs/expo/changelog.mdx index 2c3ba0c..3a9a4a2 100644 --- a/content/docs/expo/changelog.mdx +++ b/content/docs/expo/changelog.mdx @@ -5,6 +5,13 @@ description: "Release notes for the Superwall Expo SDK" # Changelog +## 1.1.2 + +### Patch Changes + +- a03889a: Ensure register callbacks resolve properly in all cases +- 09f7538: Bump Android & iOS versions + ## 1.1.1 ### Patch Changes diff --git a/content/docs/expo/index.mdx b/content/docs/expo/index.mdx index 96458f3..bd5df22 100644 --- a/content/docs/expo/index.mdx +++ b/content/docs/expo/index.mdx @@ -47,4 +47,4 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues please [open an issue on GitHub](https://github.com/superwall/expo-superwall/issues). - + diff --git a/content/docs/expo/sdk-reference/hooks/usePlacement.mdx b/content/docs/expo/sdk-reference/hooks/usePlacement.mdx index 26a3de8..14613b7 100644 --- a/content/docs/expo/sdk-reference/hooks/usePlacement.mdx +++ b/content/docs/expo/sdk-reference/hooks/usePlacement.mdx @@ -66,7 +66,7 @@ function usePlacement( }, feature: { type: "() => void", - description: "Optional function queued when you register the placement. It runs if presentation is skipped, or after the paywall dismisses with `purchased` or `restored`. It does not run on paywall errors or other dismiss results.", + description: "Optional function queued when you register the placement. It runs whenever the SDK grants access: when presentation is skipped, after a successful purchase or restore, and on dismissals of non-gated paywalls. It does not run on paywall errors, or when a gated paywall is dismissed without purchasing.", }, }} /> @@ -131,8 +131,9 @@ export default function PremiumButton() { await registerPlacement({ placement: "MyFeaturePlacement", feature: () => { - // Runs when the user is allowed through immediately, - // or after a purchased/restored paywall dismissal. + // Runs whenever Superwall grants access: + // skipped presentations, successful purchases/restores, + // or dismissals of non-gated paywalls. navigateToPremiumFeature() }, }) diff --git a/content/docs/expo/sdk-reference/index.mdx b/content/docs/expo/sdk-reference/index.mdx index 565da7e..3ccc7f1 100644 --- a/content/docs/expo/sdk-reference/index.mdx +++ b/content/docs/expo/sdk-reference/index.mdx @@ -15,4 +15,4 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/expo-superwall/issues). - +