# react-native-alert **Repository Path**: mirrors_leecade/react-native-alert ## Basic Information - **Project Name**: react-native-alert - **Description**: Use AlertIOS as a simple way just like native javascript. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-alert [![npm version](https://badge.fury.io/js/react-native-alert.svg)](http://badge.fury.io/js/react-native-alert) Use [AlertIOS](http://facebook.github.io/react-native/docs/alertios.html#content) as a simple way just like native javascript. ## INSTALL ```bash $ npm i react-native-alert --save ``` ## USAGE ```javascript var alert = require('react-native-alert') // Simple way alert('123') alert(123) // Number is allowed // With title alert('123', 'title') // With buttons alert('123', ['button']) alert('123', ['button', {text: 'alertButton', onPress: () => alert('ok')}]) // Complete usage alert('title', '123', [ {text: 'Foo', onPress: () => console.log('Foo Pressed!')}, {text: 'Bar', onPress: () => console.log('Bar Pressed!')}, ]) // Or just tell the button text alert('title', '123', ['btn1', 'btn2', {text: 'Bar', onPress: () => console.log('Bar Pressed!')}]) ```