From 51e258e6e709a7f7f34f3cd962633fb8b3d5a5f3 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Tue, 11 Jul 2017 10:55:48 -0700 Subject: [PATCH] Rename _remoteNotificationCompleteCalllbackCalled to _remoteNotificationCompleteCallbackCalled Summary: Just noticed this typo Closes https://github.com/facebook/react-native/pull/14886 Differential Revision: D5398308 Pulled By: hramos fbshipit-source-id: 9ef5155fb4d8a7b44ac9ba0c3e13871391081f1a --- Libraries/PushNotificationIOS/PushNotificationIOS.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 8c3a4e26e..d5dc474b9 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -128,7 +128,7 @@ class PushNotificationIOS { _badgeCount: number; _notificationId: string; _isRemote: boolean; - _remoteNotificationCompleteCalllbackCalled: boolean; + _remoteNotificationCompleteCallbackCalled: boolean; static FetchResult: FetchResult = { NewData: 'UIBackgroundFetchResultNewData', @@ -406,7 +406,7 @@ class PushNotificationIOS { */ constructor(nativeNotif: Object) { this._data = {}; - this._remoteNotificationCompleteCalllbackCalled = false; + this._remoteNotificationCompleteCallbackCalled = false; this._isRemote = nativeNotif.remote; if (this._isRemote) { this._notificationId = nativeNotif.notificationId; @@ -451,10 +451,10 @@ class PushNotificationIOS { * be throttled, to read more about it see the above documentation link. */ finish(fetchResult: FetchResult) { - if (!this._isRemote || !this._notificationId || this._remoteNotificationCompleteCalllbackCalled) { + if (!this._isRemote || !this._notificationId || this._remoteNotificationCompleteCallbackCalled) { return; } - this._remoteNotificationCompleteCalllbackCalled = true; + this._remoteNotificationCompleteCallbackCalled = true; RCTPushNotificationManager.onFinishRemoteNotification(this._notificationId, fetchResult); }