UNPKG

@kode-frontend/react-native-push-notification

Version:
16 lines (13 loc) 307 B
import { pushService } from '../../push-notification-service' import { updateFcmToken } from '../push-settings' const unregister = async () => { try { await pushService.removeToken() updateFcmToken(null) } catch {} } export const useUnregisterDevice = () => { return { unregister, } }