Complete API reference for the React Native SDK
The root component that initializes the SDK and manages placements.
Prop | Type | Required | Description |
---|---|---|---|
apiKey | string | Yes | Your Muta API key |
Displays a placement in a modal overlay.
Option | Type | Required | Description |
---|---|---|---|
placementId | string | Yes | The ID of the placement to display |
loadingScreen | React.ReactNode | No | A custom React component to show while the placement is loading |
bgColor | string | Yes | Background color that matches your first placement screen. This creates a seamless transition between your app and the placement. |
presentationType | 'slide' | 'fade' | 'none' | No | Animation style when showing the placement. Defaults to ‘slide’. |
Subscribe to Muta events.
Parameter | Type | Required | Description |
---|---|---|---|
eventType | MutaEventType | Yes | The type of event to listen for. Use ’*’ to listen to all events. |
callback | MutaEventCallback | Yes | The callback function to be called when the event occurs. |
An object with a remove
method to unsubscribe from the event.
Base interface for all Muta events.
Complete API reference for the React Native SDK
The root component that initializes the SDK and manages placements.
Prop | Type | Required | Description |
---|---|---|---|
apiKey | string | Yes | Your Muta API key |
Displays a placement in a modal overlay.
Option | Type | Required | Description |
---|---|---|---|
placementId | string | Yes | The ID of the placement to display |
loadingScreen | React.ReactNode | No | A custom React component to show while the placement is loading |
bgColor | string | Yes | Background color that matches your first placement screen. This creates a seamless transition between your app and the placement. |
presentationType | 'slide' | 'fade' | 'none' | No | Animation style when showing the placement. Defaults to ‘slide’. |
Subscribe to Muta events.
Parameter | Type | Required | Description |
---|---|---|---|
eventType | MutaEventType | Yes | The type of event to listen for. Use ’*’ to listen to all events. |
callback | MutaEventCallback | Yes | The callback function to be called when the event occurs. |
An object with a remove
method to unsubscribe from the event.
Base interface for all Muta events.