implement js changes
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -1,22 +1,20 @@
|
||||
import {NotImplementedError} from './NotImplemented'
|
||||
import {BackgroundNotificationHandlerPreferences} from './types'
|
||||
|
||||
export function resetGenericCountAsync(count: number): Promise<void> {
|
||||
throw new NotImplementedError({count})
|
||||
export function resetGenericCountAsync(): Promise<void> {
|
||||
throw new NotImplementedError()
|
||||
}
|
||||
|
||||
export function incrementMessagesCountAsync(
|
||||
count: number,
|
||||
export function maybeIncrementMessagesCountAsync(
|
||||
convoId: string,
|
||||
): Promise<void> {
|
||||
throw new NotImplementedError({count, convoId})
|
||||
): Promise<boolean> {
|
||||
throw new NotImplementedError({convoId})
|
||||
}
|
||||
|
||||
export function decrementMessagesCountAsync(
|
||||
count: number,
|
||||
export function maybeDecrementMessagesCountAsync(
|
||||
convoId: string,
|
||||
): Promise<void> {
|
||||
throw new NotImplementedError({count, convoId})
|
||||
): Promise<boolean> {
|
||||
throw new NotImplementedError({convoId})
|
||||
}
|
||||
|
||||
export function getPrefsAsync(): Promise<BackgroundNotificationHandlerPreferences | null> {
|
||||
|
||||
Reference in New Issue
Block a user