diff --git a/content/docs/expo/guides/migrations/migrating-to-v2.mdx b/content/docs/expo/guides/migrations/migrating-to-v2.mdx index a1ba8f64..5f89dcb5 100644 --- a/content/docs/expo/guides/migrations/migrating-to-v2.mdx +++ b/content/docs/expo/guides/migrations/migrating-to-v2.mdx @@ -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." --- + +**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. + + ## Migration steps ## 1\. Update code references diff --git a/content/docs/expo/guides/using-revenuecat.mdx b/content/docs/expo/guides/using-revenuecat.mdx index 1c0b2367..d69eed01 100644 --- a/content/docs/expo/guides/using-revenuecat.mdx +++ b/content/docs/expo/guides/using-revenuecat.mdx @@ -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 @@ -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). diff --git a/content/docs/expo/quickstart/install.mdx b/content/docs/expo/quickstart/install.mdx index 1ccf3c3a..29ff82b2 100644 --- a/content/docs/expo/quickstart/install.mdx +++ b/content/docs/expo/quickstart/install.mdx @@ -42,7 +42,7 @@ yarn dlx expo install expo-superwall ## Version Targeting -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. +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. First, install the `expo-build-properties` config plugin if your Expo project hasn’t yet: @@ -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 } } ] diff --git a/content/docs/expo/sdk-reference/hooks/usePlacement.mdx b/content/docs/expo/sdk-reference/hooks/usePlacement.mdx index 0004268a..dd50e09e 100644 --- a/content/docs/expo/sdk-reference/hooks/usePlacement.mdx +++ b/content/docs/expo/sdk-reference/hooks/usePlacement.mdx @@ -91,4 +91,4 @@ export default function PremiumButton() { } ``` -See also: [Present a paywall](/expo/getting-started/present-first-paywall) \ No newline at end of file +See also: [Present a paywall](/docs/expo/quickstart/present-first-paywall) \ No newline at end of file