1.0.3 • Published 10 years ago

react-native-alert v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

react-native-alert

npm version

Use AlertIOS as a simple way just like native javascript.

INSTALL

$ npm i react-native-alert --save

USAGE

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!')}])
1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago