jhen0409 / react-native-android-badge

A react native wrapper for leolin310148/ShortcutBadger.
MIT License
90 stars 36 forks source link

React Native Android Badge

NPM version

A react native wrapper for leolin310148/ShortcutBadger.

Why?

A react-native PushNotificationIOS provide setting badge of functions, it belongs to the native iOS support, but Android requires third-party library to do.

Setup

$ npm i --save react-native-android-badge
$ react-native link

Usage

var BadgeAndroid = require('react-native-android-badge');

BadgeAndroid.setBadge(10);