npm

Need private packages and team management tools?Check out npm Orgs. »

react-native-bpk-component-alert

3.0.16 • Public • Published

react-native-bpk-component-alert

Backpack React Native alert component.

Installation

npm install react-native-bpk-component-alert --save-dev

Usage

import BpkAlert
import React, { Component } from 'react';
import BpkAlert from 'react-native-bpk-component-alert';
 
BpkAlert.alert(
  'Alert title',
  'Alert message',
  [
    {
      text: 'Cancel',
      onPress: () => console.log('negative button pressed'),
      style: 'cancel',
    },
    { text: 'Default', onPress: () => console.log('positive button press') },
    {
      text: 'Destructive',
      onPress: () => console.log('Destructive button press'),
      style: 'destructive',
    },
  ],
  { cancelable: false },
);

Keywords

none

install

npm i react-native-bpk-component-alert

Downloadsweekly downloads

366

version

3.0.16

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability