Socket
Socket
Sign inDemoInstall

react-native-alert

Package Overview
Dependencies
166
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-alert

Use AlertIOS as a simple way just like native javascript.


Version published
Weekly downloads
39
increased by14.71%
Maintainers
1
Install size
21.0 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 14 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc