Files
mattermost-mobile/app/notification_preferences/notification_preferences.android.js
enahum e0cfefcdff RN-138 Android notification preferences (#889)
* Fix Android and iOS flow

* Own review

* RN-138 Android notification preferences

* Feedback review

* Feedback review 2
2017-09-13 12:00:16 -03:00

15 lines
531 B
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {NativeModules} from 'react-native';
const {NotificationPreferences} = NativeModules;
export default {
getPreferences: NotificationPreferences.getPreferences,
setNotificationSound: NotificationPreferences.setNotificationSound,
setShouldVibrate: NotificationPreferences.setShouldVibrate,
setShouldBlink: NotificationPreferences.setShouldBlink,
play: NotificationPreferences.previewSound
};