Try to remove as many as as possible (#6200)

* Try to remove as many ` as ` as possible

* Fix imports
This commit is contained in:
Daniel Espino García
2022-05-12 15:46:11 +02:00
committed by GitHub
parent f62dcd42f7
commit 75d1c9d228
101 changed files with 298 additions and 302 deletions

View File

@@ -11,7 +11,7 @@ const defaultPreferences: NativeNotificationPreferences = {
shouldVibrate: true,
};
export default {
const nativeNotification: NativeNotification = {
getDeliveredNotifications: NotificationPreferences.getDeliveredNotifications,
getPreferences: async () => {
try {
@@ -37,4 +37,6 @@ export default {
setNotificationSound: NotificationPreferences.setNotificationSound,
setShouldBlink: NotificationPreferences.setShouldBlink,
setShouldVibrate: NotificationPreferences.setShouldVibrate,
} as NativeNotification;
};
export default nativeNotification;

View File

@@ -5,7 +5,7 @@ import {Notifications} from 'react-native-notifications';
import {emptyFunction} from '@utils/general';
export default {
const nativeNotification: NativeNotification = {
getDeliveredNotifications: async () => Notifications.ios.getDeliveredNotifications(),
getPreferences: async () => null,
play: (soundUri: string) => emptyFunction(soundUri),
@@ -13,4 +13,6 @@ export default {
setNotificationSound: () => emptyFunction(),
setShouldBlink: (shouldBlink: boolean) => emptyFunction(shouldBlink),
setShouldVibrate: (shouldVibrate: boolean) => emptyFunction(shouldVibrate),
} as NativeNotification;
};
export default nativeNotification;