Navigating through alert box in react native