JS changes

This commit is contained in:
Hailey
2024-06-26 11:16:32 -07:00
parent 83056bbf2b
commit d6a2ee4e9e
10 changed files with 82 additions and 102 deletions
@@ -0,0 +1,27 @@
import {requireNativeModule} from 'expo'
import {BackgroundNotificationHandlerPreferences} from './ExpoBackgroundNotificationHandler.types'
const NativeModule = requireNativeModule('ExpoBackgroundNotificationHandler')
export function resetGenericCountAsync(count: number): Promise<void> {
NativeModule.resetGenericCountAsync(count)
}
export function incrementMessagesCountAsync(
count: number,
convoId: string,
): Promise<void> {
NativeModule.incrementMessagesCountAsync(count, convoId)
}
export function decrementMessagesCountAsync(
count: number,
convoId: string,
): Promise<void> {
NativeModule.decrementMessagesCountAsync(count, convoId)
}
export function getPrefsAsync(): Promise<BackgroundNotificationHandlerPreferences> {
return NativeModule.getPrefsAsync()
}