react-native-alerted

Niceish wrapper around React Native Alert API

Usage no npm install needed!

<script type="module">
  import reactNativeAlerted from 'https://cdn.skypack.dev/react-native-alerted';
</script>

README

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