1.2.1 • Published 6 years ago

dore-icon-badge v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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.