0.1.0 • Published 6 years ago
@danielbrodin/favicon v0.1.0
Favicon
A package to add notification markers and filter your favicon :)
Usage
yarn add @danielbrodin/favicon
import { favicon, grayscaleFilter } from '@danielbrodin/favicon';
if (__DEV__) {
favicon({ filter: [grayscaleFilter] });
}
function onNotificationUpdate(notificationCount) {
favicon({
showNotification: notificationCount > 0,
notificationColor: '#ba203a',
});
}
Settings will be saved so the grayscaleFilter
will be used also later when onNotificationUpdate
is called.
0.1.0
6 years ago