https://github.com/jhen0409/react-native-android-badge
A react native wrapper for leolin310148/ShortcutBadger.
https://github.com/jhen0409/react-native-android-badge
Last synced: 6 months ago
JSON representation
A react native wrapper for leolin310148/ShortcutBadger.
- Host: GitHub
- URL: https://github.com/jhen0409/react-native-android-badge
- Owner: jhen0409
- License: mit
- Created: 2015-09-15T15:57:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-18T09:44:48.000Z (over 4 years ago)
- Last Synced: 2025-04-09T19:17:04.968Z (6 months ago)
- Language: Java
- Size: 14.6 KB
- Stars: 90
- Watchers: 3
- Forks: 36
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Android Badge
[](https://www.npmjs.com/package/react-native-android-badge)
A react native wrapper for [leolin310148/ShortcutBadger](https://github.com/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
```bash
$ npm i --save react-native-android-badge
$ react-native link
```## Usage
```js
var BadgeAndroid = require('react-native-android-badge');BadgeAndroid.setBadge(10);
```