From ab9400faf651f446825594e6190fda141edd8b1b Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Fri, 27 Aug 2021 17:25:09 -0700 Subject: [PATCH] Add angry all-caps warning message --- src/libs/Notification/PushNotification/index.native.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/Notification/PushNotification/index.native.js b/src/libs/Notification/PushNotification/index.native.js index d46ab14256f9..b36a1ee977b7 100644 --- a/src/libs/Notification/PushNotification/index.native.js +++ b/src/libs/Notification/PushNotification/index.native.js @@ -51,6 +51,9 @@ function pushNotificationEventCallback(eventType, notification) { /** * Register push notification callbacks. This is separate from namedUser registration because it needs to be executed * from a headless JS process, outside of any react lifecycle. + * + * WARNING: Moving or changing this code could break Push Notification processing in non-obvious ways. + * DO NOT ALTER UNLESS YOU KNOW WHAT YOU'RE DOING. See this PR for details: https://github.com/Expensify/App/pull/3877 */ function init() { // Setup event listeners