From d5dffceec00b03f8c2442089adcfa079eb70b632 Mon Sep 17 00:00:00 2001 From: Robin Breuker Date: Fri, 1 Apr 2016 09:55:21 -0700 Subject: [PATCH] Updated documentation of local notifications for PushNotificationIOS addEventListener() Summary:I've updated the documentation of addEventListener, so it mentions the use of the 'localNotification' event. Which is currently not mentioned at all. **Test plan (required)** screen shot 2016-03-22 at 08 09 15 ? Closes https://github.com/facebook/react-native/pull/6591 Differential Revision: D3126643 Pulled By: vjeux fb-gh-sync-id: bf2bb301cc5d94d324a3b34ca14f038158092a7c fbshipit-source-id: bf2bb301cc5d94d324a3b34ca14f038158092a7c --- Libraries/PushNotificationIOS/PushNotificationIOS.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index f22beb365..264f40f3e 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -137,13 +137,15 @@ class PushNotificationIOS { } /** - * Attaches a listener to remote notification events while the app is running + * Attaches a listener to remote or local notification events while the app is running * in the foreground or the background. * * Valid events are: * * - `notification` : Fired when a remote notification is received. The * handler will be invoked with an instance of `PushNotificationIOS`. + * - `localNotification` : Fired when a local notification is received. The + * handler will be invoked with an instance of `PushNotificationIOS`. * - `register`: Fired when the user registers for remote notifications. The * handler will be invoked with a hex string representing the deviceToken. */