import { metrics } from 'config'; import { getAsyncItem, removeAsyncItem, setAsyncItem } from './asyncStorage'; const { STORAGE } = metrics; export const setPushNotificationToken = async (pushToken: string) => { await setAsyncItem(STORAGE.PUSH_NOTIFICATION_TOKEN_KEY, pushToken); }; export const getPushNotificationToken = async () => getAsyncItem(STORAGE.PUSH_NOTIFICATION_TOKEN_KEY); export const removePushNotificationToken = async () => removeAsyncItem(STORAGE.PUSH_NOTIFICATION_TOKEN_KEY);