RFC: RN: Alert.alert returning a promise?


(S├ębastien Lorber) #1

Hi,

Hey,

I often need to wait until the user made a choice when using Alert.alert, and wrote this convenient wrapper that returns a promise instead of nothing:

Does it make sense to make a PR for that? Should I provide a new method like Alert.alertAsync() or should I make the original implementation return the promise?