Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qeepsake/react-native-custom-alerts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qeepsake/react-native-custom-alerts

A library to define alerts to be used all accoss an application.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Custom Alerts

This library provides the ability to define alerts which can be used all across an application. Instead of having a separate function for all these alerts, we can define them when the application starts and easily use them wherever we need them.

Install

 npm install @qeepsake/react-native-custom-alerts

or

 yarn add @qeepsake/react-native-custom-alerts

Usage

You need to register you alerts when the application starts.

import {CustomAlert} from 'react-native-custom-alerts';

CustomAlert.setup('my-custom-alert', 'Title', 'Message', buttons, options);
CustomAlert.setup('my-second-alert', 'Title', 'Message', buttons, options);

Now, you can place the alert you want to show elsewhere in your application.

import {CustomAlert} from 'react-native-custom-alerts';

CustomAlert.alert('my-second-alert');

Methods

setup()

static setup(name, title, message?, buttons?, options?)

alert()

static alert(name)

License

This project is licensed under the MIT License

Keywords

FAQs

Package last updated on 05 Oct 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc