Socket
Socket
Sign inDemoInstall

react-native-dropdownalert

Package Overview
Dependencies
0
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-dropdownalert

A dropdown alert that allows you to display bits of information to your user.


Version published
Weekly downloads
8.6K
decreased by-13.85%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-dropdownalert

npm version npm version

A dropdown alert that allows you to display bits of information to your user. Try 1 of 3 types or roll your own custom type (see props below). Tap the alert to close or provide a time interval to close automatically.

Demo

screenshot

Usage


import DropdownAlert from 'react-native-dropdownalert'
// ...
constructor(props) {
  super(props);
  this.showAlert = this.showAlert.bind(this)
}
render() {
  return (
    <View>
      <DropdownAlert ref={"dropdownalert"} />
      <TouchableHighlight onPress={this.showAlert}>
        <Text> {'Show Alert'} </Text>
      </TouchableHighlight>
    </View>
  )
}
showAlert() {
  this.refs.dropdownalert.alert('info', 'Info', 'Chicago Cubs won the World Series!')
}
// ...

Types

screenshot screenshot screenshot screenshot

Props

Props nameTypeDescriptionPlatformDefault
closeIntervalNumberDismiss alert at a certain intervalBoth4000
backgroundColorStringbackground colorBothsteelblue
imageUriStringsource uri for network imageBoth''
imageSrcStringsource for local imageBoth''
textColorStringcolor for title and messageBothwhite
fontFamilyStringfont for title and messsageBothHelveticaNeue
startDeltaNumberwhere view animation startsBoth-100
endDeltaNumberwhere view animation endsBoth0

Inspired by: RKDropdownAlert

License

MIT

Keywords

FAQs

Last updated on 02 Jul 2016

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