Reputation: 1687
Let's say I have a code like this:
alert('Hello World')
So on my device is going to appear an alert message saying 'Hello World'. That message will be there until I press Ok.
But is there any way to remove the alert message from the screen with code? Instead of pressing Ok on the device?
Upvotes: 1
Views: 3739
Reputation: 821
I had the same problem and this worked for me: https://github.com/CodeSeven/toastr
Upvotes: 0
Reputation: 6833
You can't.
Not even in react-native
. Best alternative would be to use custom dialogs or modals.
Upvotes: 2