@uuau99999/react-native-icon-badge

1.2.1 • Public • Published

react-native-icon-badge

app icon badge designed for react native

This plugin now (since version 1.2.0) supports android and IOS.

ps: IOS icon badge setting requires PushNotificationIOS in react native. So make sure you do have PushNotificationIOS (you can find it in your react-native modules libraries folder) linked in your XCode project.

INSTALL

npm

npm install @uuau99999/react-native-icon-badge

yarn

yarn add @uuau99999/react-native-icon-badge

Methods:

setIconBadge(number)

set icon badge to the given value

getBadgeNumber()

return a promise contains the current badge number

clearBadge()

clear icon badge

If you have any question, please send an issue and I would help you as I can.

Package Sidebar

Install

npm i @uuau99999/react-native-icon-badge

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • uuau99999