@@ -194,28 +194,28 @@ class PushNotificationIOS {
194
194
if ( type === 'notification' ) {
195
195
listener = PushNotificationEmitter . addListener (
196
196
DEVICE_NOTIF_EVENT ,
197
- notifData => {
197
+ ( notifData ) => {
198
198
handler ( new PushNotificationIOS ( notifData ) ) ;
199
199
} ,
200
200
) ;
201
201
} else if ( type === 'localNotification' ) {
202
202
listener = PushNotificationEmitter . addListener (
203
203
DEVICE_LOCAL_NOTIF_EVENT ,
204
- notifData => {
204
+ ( notifData ) => {
205
205
handler ( new PushNotificationIOS ( notifData ) ) ;
206
206
} ,
207
207
) ;
208
208
} else if ( type === 'register' ) {
209
209
listener = PushNotificationEmitter . addListener (
210
210
NOTIF_REGISTER_EVENT ,
211
- registrationInfo => {
211
+ ( registrationInfo ) => {
212
212
handler ( registrationInfo . deviceToken ) ;
213
213
} ,
214
214
) ;
215
215
} else if ( type === 'registrationError' ) {
216
216
listener = PushNotificationEmitter . addListener (
217
217
NOTIF_REGISTRATION_ERROR_EVENT ,
218
- errorInfo => {
218
+ ( errorInfo ) => {
219
219
handler ( errorInfo ) ;
220
220
} ,
221
221
) ;
@@ -310,7 +310,7 @@ class PushNotificationIOS {
310
310
*/
311
311
static getInitialNotification ( ) : Promise < ?PushNotificationIOS > {
312
312
return RNCPushNotificationIOS . getInitialNotification ( ) . then (
313
- notification => {
313
+ ( notification ) => {
314
314
return notification && new PushNotificationIOS ( notification ) ;
315
315
} ,
316
316
) ;
@@ -333,7 +333,7 @@ class PushNotificationIOS {
333
333
if ( nativeNotif . remote ) {
334
334
// Extract data from Apple's `aps` dict as defined:
335
335
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
336
- Object . keys ( nativeNotif ) . forEach ( notifKey => {
336
+ Object . keys ( nativeNotif ) . forEach ( ( notifKey ) => {
337
337
const notifVal = nativeNotif [ notifKey ] ;
338
338
if ( notifKey === 'aps' ) {
339
339
this . _alert = notifVal . alert ;
0 commit comments