React Native SDK
Install the SDK in Expo or React Native, then assign variants in your onboarding screens.
npm install @spinosis/react-nativeimport { Spinosis } from "@spinosis/react-native";
await Spinosis.init({
apiKey: "spn_live_demo1234567890",
userId: currentUser.id,
apiUrl: "https://spinosis.com",
});iOS (Swift)
In Xcode: File → Add Package Dependencies… and paste https://github.com/ekofi/spinosis-ios. Add the Spinosis library, then assign variants in your onboarding screens.
https://github.com/ekofi/spinosis-iosimport Spinosis
await Spinosis.initialize(
apiKey: "spn_live_demo1234567890",
userId: currentUser.id,
apiUrl: "https://spinosis.com"
)
let variant = await Spinosis.getVariant(
"onboarding_v1",
fallback: "control",
timeout: 1.5
)RevenueCat
Connected
In RevenueCat, open Project settings → Integrations → Webhooks. Paste this URL and send the authorization header below. Use the same App User ID that you pass to Spinosis.init.
Webhook URL
https://spinosis.com/api/webhooks/revenuecat/demoAuthorization header
Bearer spn_whsec_demo1234567890Latest webhook: 8/25/2026, 12:04:00 PM