UNPKG

react-notifications-component-updated

Version:
32 lines (31 loc) 1.19 kB
import React from 'react'; import { iNotificationCustomType, iNotification } from '../../src/typings'; import "src/scss/notification.scss"; export { Container, iContainerProps, iContainerState }; interface iContainerProps { isMobile?: boolean; breakpoint?: number; types?: iNotificationCustomType[]; defaultNotificationWidth?: number; className?: string; } interface iContainerState { isMobile: boolean; breakpoint: number; notifications: iNotification[]; windowWidth: number; } declare class Container extends React.Component<iContainerProps, iContainerState> { constructor(props: iContainerProps); componentDidMount(): void; componentWillUnmount(): void; handleResize: () => void; add: (notification: iNotification) => string; remove: (id: string) => void; removeAllNotifications: () => void; toggleRemoval: (id: string, callback: () => void) => void; renderNotifications(notifications: iNotification[], isMobile: boolean): JSX.Element[]; renderMobileNotifications(props: any): JSX.Element; renderScreenNotifications(props: any): JSX.Element; render(): JSX.Element; }