DEV Community

skptricks
skptricks

Posted on

How to show an alert in React Native

Source : How to show an alert in React Native

This tutorial explains how to show alert message in react native application. In react native we are having Alert component that helps to display alert message in user screen. Launches an alert dialog with the specified title and message. Optionally provide a list of buttons. Tapping any button will fire the respective onPress callback and dismiss the alert. By default, the only button will be an 'OK' button. This is an API that works both on iOS and Android and can show static alerts. To show an alert that prompts the user to enter some information, see AlertIOS; entering text in an alert is common on iOS only.

How to show an alert in React Native

Click here to read more...

Top comments (0)