In-App Surveys Event Handlers
Covered here is how to set up the event handler that fires before and after every survey is shown for your React Native apps.
You can execute code in a handler that gets called before a survey is shown and after it has been dismissed. You can use this for things like pausing and resuming a game, for example.
Before showing the survey
Use Surveys.setOnShowHandler to run code right before the survey appears.
Surveys.setOnShowHandler(() => {
// Perform any changes before the survey appears.
});After the survey has been dismissed
Use Surveys.setOnDismissHandler to run code when the survey is dismissed.
Surveys.setOnDismissHandler(() => {
// Perform any changes before the survey disappears.
});Last updated