forked from Ivasoft/mattermost-mobile
Try to remove as many as as possible (#6200)
* Try to remove as many ` as ` as possible * Fix imports
This commit is contained in:
committed by
GitHub
parent
f62dcd42f7
commit
75d1c9d228
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user