I have an alert that has some startup and other logic attached which I would like to reuse in multiple places inside my app.

My current solution which I do not like is that I have a component which on construction creates and presents the alert.
so when I want the alert to show up I have to push my new component onto the stack which then results in the alert showing up. On alert cancel or action, I pop my new component off of the stack and it returns to the previous view.

The problem is that a white screen appears before the alert and then disappears, so the alert isn't really being shown on top of the correct view.

Is there a better way to do this?