0.0.3 • Published 7 years ago
react-native-shortcut-badger v0.0.3
How to use it
Add package react-native-shortcut-badger to react-native project
$ npm i --save react-native-shortcut-badger
$ react-native link react-native-shortcut-badger
Import the module and use it in your react-native code
import BadgeNumberAndroid from 'react-native-shortcut-badger'
...
BadgeNumberAndroid.setNumber(5)
Run the project on supported devices and check:
$ react-native run-android
You can see the list of supported devices at leolin310148/ShortcutBadger