Skip to content

uuau99999/react-native-icon-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

app icon badge designed for react native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published