From 6fc5a78956fd6eae27dd0be2c7b13b8858136d8b Mon Sep 17 00:00:00 2001 From: Andrew Rasmussen Date: Mon, 16 Mar 2015 18:13:06 -0700 Subject: [PATCH] [ReactNative] unbreak Android --- Libraries/Utilities/PushNotificationIOS.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/Utilities/PushNotificationIOS.js b/Libraries/Utilities/PushNotificationIOS.js index 390fa933e..86733bde3 100644 --- a/Libraries/Utilities/PushNotificationIOS.js +++ b/Libraries/Utilities/PushNotificationIOS.js @@ -9,8 +9,10 @@ var NativeModules = require('NativeModules'); var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter'); var RCTPushNotificationManager = NativeModules.RCTPushNotificationManager; +if (RCTPushNotificationManager) { + var _initialNotification = RCTPushNotificationManager.initialNotification; +} -var _initialNotification = RCTPushNotificationManager.initialNotification; var _notifHandlers = {}; var DEVICE_NOTIF_EVENT = 'remoteNotificationReceived';