Permalink
Browse files

Rename _remoteNotificationCompleteCalllbackCalled to _remoteNotificat…

…ionCompleteCallbackCalled

Summary:
Just noticed this typo
Closes #14886

Differential Revision: D5398308

Pulled By: hramos

fbshipit-source-id: 9ef5155fb4d8a7b44ac9ba0c3e13871391081f1a
  • Loading branch information...
koenpunt authored and facebook-github-bot committed Jul 11, 2017
1 parent 78e2030 commit 51e258e6e709a7f7f34f3cd962633fb8b3d5a5f3
Showing with 4 additions and 4 deletions.
  1. +4 −4 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);
}

0 comments on commit 51e258e

Please sign in to comment.