An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# React Native Android Badge

[![NPM version](http://img.shields.io/npm/v/react-native-android-badge.svg?style=flat)](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);
```