@@ -194,28 +194,28 @@ class PushNotificationIOS {
194194 if ( type === 'notification' ) {
195195 listener = PushNotificationEmitter . addListener (
196196 DEVICE_NOTIF_EVENT ,
197- notifData => {
197+ ( notifData ) => {
198198 handler ( new PushNotificationIOS ( notifData ) ) ;
199199 } ,
200200 ) ;
201201 } else if ( type === 'localNotification' ) {
202202 listener = PushNotificationEmitter . addListener (
203203 DEVICE_LOCAL_NOTIF_EVENT ,
204- notifData => {
204+ ( notifData ) => {
205205 handler ( new PushNotificationIOS ( notifData ) ) ;
206206 } ,
207207 ) ;
208208 } else if ( type === 'register' ) {
209209 listener = PushNotificationEmitter . addListener (
210210 NOTIF_REGISTER_EVENT ,
211- registrationInfo => {
211+ ( registrationInfo ) => {
212212 handler ( registrationInfo . deviceToken ) ;
213213 } ,
214214 ) ;
215215 } else if ( type === 'registrationError' ) {
216216 listener = PushNotificationEmitter . addListener (
217217 NOTIF_REGISTRATION_ERROR_EVENT ,
218- errorInfo => {
218+ ( errorInfo ) => {
219219 handler ( errorInfo ) ;
220220 } ,
221221 ) ;
@@ -310,7 +310,7 @@ class PushNotificationIOS {
310310 */
311311 static getInitialNotification ( ) : Promise < ?PushNotificationIOS > {
312312 return RNCPushNotificationIOS . getInitialNotification ( ) . then (
313- notification => {
313+ ( notification ) => {
314314 return notification && new PushNotificationIOS ( notification ) ;
315315 } ,
316316 ) ;
@@ -333,7 +333,7 @@ class PushNotificationIOS {
333333 if ( nativeNotif . remote ) {
334334 // Extract data from Apple's `aps` dict as defined:
335335 // 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 ) => {
337337 const notifVal = nativeNotif [ notifKey ] ;
338338 if ( notifKey === 'aps' ) {
339339 this . _alert = notifVal . alert ;
0 commit comments