Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions content/docs/expo/guides/migrations/migrating-to-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ title: "Migrating from v1 to v2 - React Native"
description: "SuperwallKit 2.0 is a major release of Superwall's React Native SDK. This introduces breaking changes."
---

<Warning>
**Legacy SDK Migration Guide**

This guide is for migrating between v1 and v2 of the **legacy** `react-native-superwall` SDK. If you're using the modern `expo-superwall` SDK, you don't need this guide. See the [migration guide for moving from react-native-superwall to expo-superwall](/expo/guides/migrating-react-native) instead.
</Warning>

## Migration steps

## 1\. Update code references
Expand Down
17 changes: 1 addition & 16 deletions content/docs/expo/guides/using-revenuecat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export class RCPurchaseController extends PurchaseController {
}
```

As discussed in [Purchases and Subscription Status](/docs/advanced-configuration), this `PurchaseController` is responsible for handling the subscription-related logic. Take a few moments to look through the code to understand how it does this.
As discussed in [Purchases and Subscription Status](/docs/expo/guides/advanced-configuration), this `PurchaseController` is responsible for handling the subscription-related logic. Take a few moments to look through the code to understand how it does this.

### 2. Configure Superwall

Expand Down Expand Up @@ -434,19 +434,4 @@ If you're using RevenueCat's [PurchasesAreCompletedBy](https://www.revenuecat.co
2. If you require custom logic when purchases occur, then you'll want to add a purchase controller. In that case, Superwall handles purchasing flows and RevenueCat will still observe transactions to power their analytics and charts.
3. Be sure that user identifiers are set the same way across Superwall and RevenueCat.

:::ios
Example:

```swift
Superwall.configure(apiKey: "superwall_public_key")
Superwall.shared.identify(userId: user.identifier)
Purchases.configure(with:
.builder(withAPIKey: "revcat_public_key")
.with(purchasesAreCompletedBy: .myApp, storeKitVersion: .storeKit1/.storeKit2)
.with(appUserID: user.identifier)
.build()
)
```
:::

For more information on observer mode, visit [RevenueCat's docs](https://www.revenuecat.com/docs/migrating-to-revenuecat/sdk-or-not/finishing-transactions).
6 changes: 3 additions & 3 deletions content/docs/expo/quickstart/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ yarn dlx expo install expo-superwall

## Version Targeting

<Warning>Superwall requires iOS 14.0 or higher, aswell as Android SDK 26 or higher. Ensure you Expo targets the correct minimum OS version by updating app.json or app.config.js.</Warning>
<Warning>Superwall requires iOS 15.1 or higher, as well as Android SDK 21 or higher. Ensure your Expo project targets the correct minimum OS version by updating app.json or app.config.js.</Warning>

First, install the `expo-build-properties` config plugin if your Expo project hasn’t yet:

Expand All @@ -61,10 +61,10 @@ Then, add the following to your `app.json` or `app.config.js` file:
"expo-build-properties",
{
"android": {
"minSdkVersion": 26
"minSdkVersion": 21
},
"ios": {
"deploymentTarget": "14.0" // or higher
"deploymentTarget": "15.1" // or higher
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion content/docs/expo/sdk-reference/hooks/usePlacement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ export default function PremiumButton() {
}
```

See also: [Present a paywall](/expo/getting-started/present-first-paywall)
See also: [Present a paywall](/docs/expo/quickstart/present-first-paywall)
Loading