- Single Invocation Scenario
Where the self-handled in-app method is called once in the app, the event listener captures and logs the payload a single time. The following are example snippets of the implementation:

- Multiple Invocation Scenario
If the self-handled in-app method is called multiple times in quick succession, React Native’s event-handling model ensures the listener still responds only once. For example:

How Do Self-Handled In-Apps Work in React Native?
How self-handled in-app messages work in React Native with MoEngage, including single and multiple invocation callback handling and event order.
The self-handled in-app functionality in React Native ensures that new event listeners are configured only after any active callback is completed. This approach ensures that events are handled individually, maintaining the correct order and execution of callbacks.
Here’s how it works:
How to Make the Background of In-App Templates Transparent or Set It to Any Color?Why Do In-app Nudges and Regular In-apps Overlap?