Function setRunAfterInteractions

Customize how to run a function after interactions.

The default implementation runs the function after a 0ms timeout using setTimeout.

For example, on React Native, we want to use InteractionManager.runAfterInteractions