-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.js
18 lines (16 loc) · 803 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {NativeModules} from 'react-native';
var RNLocalNotifications = {
createNotification: function(id, text, datetime, sound, hiddendata='') {
NativeModules.RNLocalNotifications.createNotification(id, text, datetime, sound, hiddendata);
},
deleteNotification: function(id) {
NativeModules.RNLocalNotifications.deleteNotification(id);
},
updateNotification: function(id, text, datetime, sound, hiddendata='') {
NativeModules.RNLocalNotifications.updateNotification(id, text, datetime, sound, hiddendata);
},
setAndroidIcons: function(largeIconName, largeIconType, smallIconName, smallIconType) {
NativeModules.RNLocalNotifications.setAndroidIcons(largeIconName, largeIconType, smallIconName, smallIconType);
},
};
export default RNLocalNotifications;