Components
SuperwallProvider
<SuperwallProvider /> is the root component for the Superwall SDK. It is used to initialize the SDK with your API key.
Props
Prop
Type
apiKeys
Prop
Type
<SuperwallProvider
apiKeys={{ ios: "YOUR_SUPERWALL_API_KEY" }}
onConfigurationError={(error) => {
console.error("Superwall configuration failed:", error);
// Handle error, show UI, or retry
}}
>
{/* Your app content */}
</SuperwallProvider>Example
import { SuperwallProvider } from "expo-superwall";
// Replace with your actual Superwall API key
export default function App() {
return (
<SuperwallProvider apiKeys={{ ios: "YOUR_SUPERWALL_API_KEY" /* android: API_KEY */ }}>
{/* Your app content goes here */}
</SuperwallProvider>
);
}How is this guide?
Edit on GitHub