Skip to content

Commit f6008c3

Browse files
authored
Merge pull request #6 from aperdec/release/0.1.2
changed naming convention so the index files were the same. Changed v…
2 parents 721044d + 52f5ca3 commit f6008c3

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

index.android.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var RNPushNotification = require('react-native-push-notification');
44

5-
var Notifications = {
5+
var PushNotification = {
66
handler: RNPushNotification.handler,
77
onRegister: false,
88
onError: false,
@@ -20,38 +20,38 @@ var Notifications = {
2020
}
2121
};
2222

23-
Notifications.callNative = function (name: String, params: Array) {
23+
PushNotification.callNative = function (name: String, params: Array) {
2424
RNPushNotification.callNative(name, params);
2525
};
2626

27-
Notifications.configure = function (options: Object) {
27+
PushNotification.configure = function (options: Object) {
2828
RNPushNotification.configure(options);
2929
};
3030

31-
Notifications.unregister = function () {
31+
PushNotification.unregister = function () {
3232
RNPushNotification.unregister();
3333
};
3434

35-
Notifications.localNotification = function (details: Object) {
35+
PushNotification.localNotification = function (details: Object) {
3636
RNPushNotification.localNotification(details);
3737
};
3838

39-
Notifications.localNotificationSchedule = function (details: Object) {
39+
PushNotification.localNotificationSchedule = function (details: Object) {
4040
RNPushNotification.localNotificationSchedule(details);
4141
};
4242

43-
Notifications._onRegister = function (token: String) {
43+
PushNotification._onRegister = function (token: String) {
4444
RNPushNotification._onRegister(token);
4545
};
4646

47-
Notifications._onRemoteFetch = function (notificationData: Object) {
47+
PushNotification._onRemoteFetch = function (notificationData: Object) {
4848
RNPushNotification._onRemoteFetch(notificationData);
4949
};
5050

51-
Notifications._onNotification = function (data, isFromBackground = null) {
51+
PushNotification._onNotification = function (data, isFromBackground = null) {
5252
RNPushNotification._onNotification(data);
5353
};
5454

55-
Notifications._onPermissionResult = function () {
55+
PushNotification._onPermissionResult = function () {
5656
RNPushNotification._onPermissionResult();
5757
};

index.ios.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var RNPushNotification = require('react-native-push-notification');
44

5-
var Notifications = {
5+
var PushNotification = {
66
handler: RNPushNotification.handler,
77
onRegister: false,
88
onError: false,
@@ -20,38 +20,38 @@ var Notifications = {
2020
}
2121
};
2222

23-
Notifications.callNative = function (name: String, params: Array) {
23+
PushNotification.callNative = function (name: String, params: Array) {
2424
RNPushNotification.callNative(name, params);
2525
};
2626

27-
Notifications.configure = function (options: Object) {
27+
PushNotification.configure = function (options: Object) {
2828
RNPushNotification.configure(options);
2929
};
3030

31-
Notifications.unregister = function () {
31+
PushNotification.unregister = function () {
3232
RNPushNotification.unregister();
3333
};
3434

35-
Notifications.localNotification = function (details: Object) {
35+
PushNotification.localNotification = function (details: Object) {
3636
RNPushNotification.localNotification(details);
3737
};
3838

39-
Notifications.localNotificationSchedule = function (details: Object) {
39+
PushNotification.localNotificationSchedule = function (details: Object) {
4040
RNPushNotification.localNotificationSchedule(details);
4141
};
4242

43-
Notifications._onRegister = function (token: String) {
43+
PushNotification._onRegister = function (token: String) {
4444
RNPushNotification._onRegister(token);
4545
};
4646

47-
Notifications._onRemoteFetch = function (notificationData: Object) {
47+
PushNotification._onRemoteFetch = function (notificationData: Object) {
4848
RNPushNotification._onRemoteFetch(notificationData);
4949
};
5050

51-
Notifications._onNotification = function (data, isFromBackground = null) {
51+
PushNotification._onNotification = function (data, isFromBackground = null) {
5252
RNPushNotification._onNotification(data);
5353
};
5454

55-
Notifications._onPermissionResult = function () {
55+
PushNotification._onPermissionResult = function () {
5656
RNPushNotification._onPermissionResult();
5757
};

index.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var PushNotifications = {
3+
var PushNotification = {
44
handler: null,
55
onRegister: false,
66
onError: false,
@@ -18,79 +18,79 @@ var PushNotifications = {
1818
}
1919
};
2020

21-
PushNotifications.callNative = function(name, params) {
21+
PushNotification.callNative = function(name, params) {
2222
/* void */
2323
};
2424

25-
PushNotifications.configure = function(options) {
25+
PushNotification.configure = function(options) {
2626
/* void */
2727
};
2828

29-
PushNotifications.unregister = function() {
29+
PushNotification.unregister = function() {
3030
/* void */
3131
};
3232

33-
PushNotifications.localNotification = function(details) {
33+
PushNotification.localNotification = function(details) {
3434
/* void */
3535
};
3636

37-
PushNotifications.localNotificationSchedule = function(details) {
37+
PushNotification.localNotificationSchedule = function(details) {
3838
/* void */
3939
};
4040

41-
PushNotifications._onRegister = function(token) {
41+
PushNotification._onRegister = function(token) {
4242
/* void */
4343
};
4444

45-
PushNotifications._onRemoteFetch = function(notificationData) {
45+
PushNotification._onRemoteFetch = function(notificationData) {
4646
/* void */
4747
};
4848

49-
PushNotifications._onNotification = function(data, isFromBackground = null) {
49+
PushNotification._onNotification = function(data, isFromBackground = null) {
5050
/* void */
5151
};
5252

53-
PushNotifications._onPermissionResult = function() {
53+
PushNotification._onPermissionResult = function() {
5454
/* void */
5555
};
5656

57-
PushNotifications._requestPermissions = function() {
57+
PushNotification._requestPermissions = function() {
5858
/* void */
5959
};
6060

61-
PushNotifications.requestPermissions = function() {
61+
PushNotification.requestPermissions = function() {
6262
/* void */
6363
};
6464

65-
PushNotifications.presentLocalNotification = function() {
65+
PushNotification.presentLocalNotification = function() {
6666
/* void */
6767
};
6868

69-
PushNotifications.scheduleLocalNotification = function() {
69+
PushNotification.scheduleLocalNotification = function() {
7070
/* void */
7171
};
7272

73-
PushNotifications.cancelLocalNotifications = function() {
73+
PushNotification.cancelLocalNotifications = function() {
7474
/* void */
7575
};
7676

77-
PushNotifications.cancelAllLocalNotifications = function() {
77+
PushNotification.cancelAllLocalNotifications = function() {
7878
/* void */
7979
};
8080

81-
PushNotifications.setApplicationIconBadgeNumber = function() {
81+
PushNotification.setApplicationIconBadgeNumber = function() {
8282
/* void */
8383
};
8484

85-
PushNotifications.getApplicationIconBadgeNumber = function() {
85+
PushNotification.getApplicationIconBadgeNumber = function() {
8686
/* void */
8787
};
8888

89-
PushNotifications.popInitialNotification = function(handler) {
89+
PushNotification.popInitialNotification = function(handler) {
9090
/* void */
9191
};
9292

93-
PushNotifications.abandonPermissions = function() {
93+
PushNotification.abandonPermissions = function() {
9494
/* void */
9595
};
9696

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactxp-push-notification",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Plugin for ReactXP that provides support for Push Notifications for Android and iOS",
55
"author": "Andrew Perdec <aperdec@gmail.com>",
66
"license": "MIT",

0 commit comments

Comments
 (0)