All Projects → mobilusoss → React Notification Badge

mobilusoss / React Notification Badge

Licence: mit
Simple notification badge react component

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Notification Badge

Battery notifier
Send an alarm to notification daemon if battery percentage become lower than a threshould
Stars: ✭ 16 (-61.9%)
Mutual labels:  notification
Gcnotificationview
Simplest notification alert view for iOS
Stars: ✭ 27 (-35.71%)
Mutual labels:  notification
Zenziva.php
Zenziva - Indonesia Online SMS Gateway Library
Stars: ✭ 33 (-21.43%)
Mutual labels:  notification
Notification
notification with socket.io
Stars: ✭ 24 (-42.86%)
Mutual labels:  notification
Notifyjs
Stars: ✭ 26 (-38.1%)
Mutual labels:  notification
Fredy
❤️ Fredy - [F]ind [R]eal [E]states [D]amn Eas[y] - Let the robot do the work...
Stars: ✭ 29 (-30.95%)
Mutual labels:  notification
Ppbadgeview
iOS Custom Badge, Support UIView, UITabBarItem, UIBarButtonItem ,Support Objective-C/Swift; iOS自定义Badge组件, 支持UIView, UITabBarItem, UIBarButtonItem, 支持Objective-C/Swift
Stars: ✭ 807 (+1821.43%)
Mutual labels:  badge
Thsidebar
NSOutlineView and badge
Stars: ✭ 38 (-9.52%)
Mutual labels:  badge
Badges4 Readme.md Profile
👩‍💻👨‍💻 Improve your README.md profile with these amazing badges.
Stars: ✭ 929 (+2111.9%)
Mutual labels:  badge
Ajmessage
Simple popup message
Stars: ✭ 30 (-28.57%)
Mutual labels:  notification
Yii2 Telegram Log
Telegram log target for Yii 2
Stars: ✭ 24 (-42.86%)
Mutual labels:  notification
Best Practices Badge
🏆Core Infrastructure Initiative Best Practices Badge
Stars: ✭ 928 (+2109.52%)
Mutual labels:  badge
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-30.95%)
Mutual labels:  badge
Inotify
📢 JS achieve the browser title flashing, scrolling, voice prompts, Chrome/Safari/FireFox/IE notice. has no dependencies. It not interfere with any JavaScript libraries or frameworks. has a reasonable footprint 5.05kb (gzipped: 1.75kb)
Stars: ✭ 892 (+2023.81%)
Mutual labels:  notification
Lol Chime
🔔 A cross-platform(Linux, Windows, OSX) terminal utility that notifies the user with a bard chime when their friends are out of the game.
Stars: ✭ 35 (-16.67%)
Mutual labels:  notification
Badge
Add a badge to your app icon
Stars: ✭ 832 (+1880.95%)
Mutual labels:  badge
React Notie
Simple notifications for react
Stars: ✭ 27 (-35.71%)
Mutual labels:  notification
Notificationbar
A simple module for iOS that allows you to show notifications strips
Stars: ✭ 40 (-4.76%)
Mutual labels:  notification
Ette
EVM-based Blockchain Indexer, with historical data query & real-time notification support 😎
Stars: ✭ 37 (-11.9%)
Mutual labels:  notification
Telegram Notifier
Provides Telegram integration for Symfony Notifier.
Stars: ✭ 30 (-28.57%)
Mutual labels:  notification

react-notification-badge Build Status npm version codebeat badge FOSSA Status codecov

Simple notification badge react component

Gyazo

Demo

View Demo

Installation

npm install --save react-notification-badge

API

NotificationBadge

Props

NotificationBadge.propTypes = {
  count: React.PropTypes.number,
  label: React.PropTypes.string,
  containerStyle: React.PropTypes.object,
  style: React.PropTypes.object,
  className: React.PropTypes.string,
  effect: React.PropTypes.array,
  duration: React.PropTypes.number
};
  • count: Badge count, if count < 1, badge will not shown.

  • label: Badge label will be rendered instead of count.

  • containerStyle: custom style of container

  • style: custom style of badge

  • className: className of badge

  • effect: effect of notification. effect array should be [string, string, object, object].

    effect[0] will be applied to transform on first frame. effect[1] will be applied to transform on frameLength. effect[2] will be applied as style[key] = value on first frame. effect[3] will be applied to style[key] = value on frameLength.

    Pre defined effect is available as

    • Effect.ROTATE_X
    • Effect.ROTATE_Y
    • Effect.SCALE
  • frameLength: Frame length for effect[1] and effect[3] (default 30.0, 60.0fps/30.0 = 0.5 second)

Usage example

import NotificationBadge from 'react-notification-badge';
import {Effect} from 'react-notification-badge';

<div style={container}>
  <NotificationBadge count={this.state.count} effect={Effect.SCALE}/>
</div>

See example

npm install
npm run start:example

Tests

npm test

Update dependencies

Use npm-check-updates

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].