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 Build Status License

A dropdown alert that allows you to display bits of information to your users. Try 1 of 3 pre-defined types or roll your own custom type (see props below). The user can tap the alert to close it or it will close automatically after 4 seconds or you can choose how long (see closeInterval prop).

Demo


screenshot

Usage



import DropdownAlert from 'react-native-dropdownalert'
// ...
render() {
  return (
    <View>
      <DropdownAlert ref={'dropdown'} />
    </View>
  )
}
// ...
handleServerResponse(err, response) {
  if (err != null) {
    // Inform the user of the error.
    this.refs.dropdown.alert('error', 'Error', err)
  }
}
// ...

Types


screenshot screenshot screenshot screenshot

Props


| Props name | Type | Description | Default | ------------ | ------------- | ------------ |------------ |------------ | | closeInterval | Number | dismiss alert at a certain time in milliseconds | 4000 | backgroundColor | String | background color of view | steelblue | imageUri | String | network image | '' | imageSrc | Number | local image | null | textColor | String | color for title and message | white | fontFamily | String | font for title and messsage | HelveticaNeue | startDelta | Number | where view starts at | -100 | endDelta | Number | where view ends at | 0 | statusBarHidden | Boolean | status bar visibility | false

Inspired by: RKDropdownAlert

Keywords

FAQs

Last updated on 10 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