react-native-badge

app badge helper

Installation

npm install react-native-badge

Usage

import {
  getBadgeCount,
  setBadgeCount,
  isBadgeSupported,
} from 'react-native-badge';

// ...

if (isBadgeSupported()) {
    const cnt = await getBadgeCount();
    await setBadgeCount(cnt + 1);
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library