In-App Messaging

This section provides API reference details for the In-App Messaging module in React Native unified plugin.

showInAppMessage 

Displays a specific in-app message by its identifier.

Syntax 

1InAppMessagingSdkModule.showInAppMessage(messageId);

Parameters 

ParameterTypeDescription
messageIdstringThe in-app message ID to display. Use a valid message ID from your in-app message configuration.

Returns 

  • void

Example 

1import { IamModule } from "@sfmc/react-native-iam";
2import type { IamApi } from "@sfmc/react-native-iam";
3
4const iam: IamApi = await IamModule.requestSdk();
5iam.showInAppMessage("message-id");

See Also