Skip to content

tiaanduplessis/react-native-alerted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-alerted

package version package downloads standard-readme compliant package license make a pull request

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

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am 'Add some feature'
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

About

Niceish wrapper around React Native Alert API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published