Is there a way to implement that function? Right now when I tap on the darkened region, the modal doesn't close.