README
react-native-alerted
Niceish wrapper around React Native Alert API
Table of Contents
Install
This project uses node and npm.
$ npm install react-native-alerted
$ # OR
$ yarn add react-native-alerted
Usage
import alert from 'react-native-alerted' // eslint-disable-line
const isCancelable = false
alert('Oops!', 'Something broke', {
'No problem': () => console.log('whatever'),
Cancel: () => console.log('Sh*t hit the fan'),
}, isCancelable)
alert('Yay!', 'You can now delete this app')
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT