implement js changes

This commit is contained in:
Hailey
2024-06-26 11:31:27 -07:00
parent f9c5c42290
commit 035fad8bc6
6 changed files with 31 additions and 49 deletions
@@ -4,22 +4,20 @@ import {BackgroundNotificationHandlerPreferences} from './ExpoBackgroundNotifica
const NativeModule = requireNativeModule('ExpoBackgroundNotificationHandler')
export function resetGenericCountAsync(count: number): Promise<void> {
NativeModule.resetGenericCountAsync(count)
export function resetGenericCountAsync(): Promise<void> {
NativeModule.resetGenericCountAsync()
}
export function incrementMessagesCountAsync(
count: number,
export function maybeIncrementMessagesCountAsync(
convoId: string,
): Promise<void> {
NativeModule.incrementMessagesCountAsync(count, convoId)
): Promise<boolean> {
NativeModule.incrementMessagesCountAsync(convoId)
}
export function decrementMessagesCountAsync(
count: number,
export function maybeDecrementMessagesCountAsync(
convoId: string,
): Promise<void> {
NativeModule.decrementMessagesCountAsync(count, convoId)
): Promise<boolean> {
NativeModule.decrementMessagesCountAsync(convoId)
}
export function getPrefsAsync(): Promise<BackgroundNotificationHandlerPreferences> {