Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 644 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 644 Bytes

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);