UNPKG

@elemental-design/expo-notifications

Version:
11 lines 659 B
import uuidv4 from 'uuid/v4'; import NotificationPresenter from './NotificationPresenter'; let warningMessageShown = false; export default async function presentNotificationAsync(content, identifier = uuidv4()) { if (__DEV__ && !warningMessageShown) { console.warn('`presentNotificationAsync` has been deprecated in favor of using `scheduleNotificationAsync` + an explicit notification handler. Read more at https://expo.fyi/presenting-notifications-deprecated.'); warningMessageShown = true; } return await NotificationPresenter.presentNotificationAsync(identifier, content); } //# sourceMappingURL=presentNotificationAsync.js.map