react-native-android-badge-sysd

A react native wrapper for leolin310148/ShortcutBadger.

Usage no npm install needed!

<script type="module">
  import reactNativeAndroidBadgeSysd from 'https://cdn.skypack.dev/react-native-android-badge-sysd';
</script>

README

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-sysd
$ react-native link

Usage

import BadgeAndroid from 'react-native-android-badge-sysd'
BadgeAndroid.setBadge(10);