From 7e445e6cfa46d87bfd85d7f39e3254a6bb5a60ee Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Thu, 9 Jun 2016 16:26:00 -0700 Subject: [PATCH] Improve PushNotificationIOS documentation Summary: The documentation currently list a few but not all of the steps required. This changes completes that list of required project changes. This addresses #5612 Closes https://github.com/facebook/react-native/pull/7985 Differential Revision: D3414576 Pulled By: nicklockwood fbshipit-source-id: 2c7ea6598ee4cd8b6945d9bb229bed5b592a68f6 --- Libraries/PushNotificationIOS/PushNotificationIOS.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 4c89295ed7b..a0d54c217d9 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -36,9 +36,10 @@ const DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived'; * * [Manually link](docs/linking-libraries-ios.html#manual-linking) the PushNotificationIOS library * - * - Be sure to add the following to your `Header Search Paths`: - * `$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS` - * - Set the search to `recursive` + * - Add the following to your Project: `node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj` + * - Add the following to `Link Binary With Libraries`: `libRCTPushNotification.a` + * - Add the following to your `Header Search Paths`: + * `$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS` and set the search to `recursive` * * Finally, to enable support for `notification` and `register` events you need to augment your AppDelegate. *