@elemental-design/expo-notifications
Version:
13 lines • 660 B
JavaScript
import { UnavailabilityError, Platform } from '@unimodules/core';
import NotificationPresenter from './NotificationPresenter';
export default async function createCategoryAsync(categoryId, actions, previewPlaceholder) {
if (!NotificationPresenter.createCategoryAsync) {
throw new UnavailabilityError('Notifications', 'createCategoryAsync');
}
return Platform.OS === 'ios'
? await NotificationPresenter.createCategoryAsync(categoryId, actions)
: (() => { })();
// FIXME: Implement for Android
// : await NotificationPresenter.createCategoryAsync(categoryId, actions);
}
//# sourceMappingURL=createCategoryAsync.js.map