@@ -29,7 +29,7 @@ var Notifications = {
29
29
}
30
30
} ;
31
31
32
- Notifications . callNative = function ( name : String , params : Array ) {
32
+ Notifications . callNative = function ( name , params ) {
33
33
if ( typeof this . handler [ name ] === 'function' ) {
34
34
if ( typeof params !== 'array' &&
35
35
typeof params !== 'object' ) {
@@ -51,7 +51,7 @@ Notifications.callNative = function(name: String, params: Array) {
51
51
* @param {Object } options.permissions - Permissions list
52
52
* @param {Boolean } options.requestPermissions - Check permissions when register
53
53
*/
54
- Notifications . configure = function ( options : Object ) {
54
+ Notifications . configure = function ( options ) {
55
55
if ( typeof options . onRegister !== 'undefined' ) {
56
56
this . onRegister = options . onRegister ;
57
57
}
@@ -117,7 +117,7 @@ Notifications.unregister = function() {
117
117
* @param {String } details.ticker - ANDROID ONLY: The ticker displayed in the status bar.
118
118
* @param {Object } details.userInfo - iOS ONLY: The userInfo used in the notification alert.
119
119
*/
120
- Notifications . localNotification = function ( details : Object ) {
120
+ Notifications . localNotification = function ( details ) {
121
121
if ( Platform . OS === 'ios' ) {
122
122
// https://developer.apple.com/reference/uikit/uilocalnotification
123
123
@@ -149,7 +149,7 @@ Notifications.localNotification = function(details: Object) {
149
149
* @param {Object } details (same as localNotification)
150
150
* @param {Date } details.date - The date and time when the system should deliver the notification
151
151
*/
152
- Notifications . localNotificationSchedule = function ( details : Object ) {
152
+ Notifications . localNotificationSchedule = function ( details ) {
153
153
if ( Platform . OS === 'ios' ) {
154
154
let soundName = details . soundName ? details . soundName : 'default' ; // play sound (and vibrate) as default behaviour
155
155
@@ -189,7 +189,7 @@ Notifications.localNotificationSchedule = function(details: Object) {
189
189
} ;
190
190
191
191
/* Internal Functions */
192
- Notifications . _onRegister = function ( token : String ) {
192
+ Notifications . _onRegister = function ( token ) {
193
193
if ( this . onRegister !== false ) {
194
194
this . onRegister ( {
195
195
token : token ,
@@ -198,7 +198,7 @@ Notifications._onRegister = function(token: String) {
198
198
}
199
199
} ;
200
200
201
- Notifications . _onRemoteFetch = function ( notificationData : Object ) {
201
+ Notifications . _onRemoteFetch = function ( notificationData ) {
202
202
if ( this . onRemoteFetch !== false ) {
203
203
this . onRemoteFetch ( notificationData )
204
204
}
0 commit comments