From e3b96a4d63164f8ce7c7a54d86713a1ea0277653 Mon Sep 17 00:00:00 2001 From: Antoine Doubovetzky Date: Sun, 24 Jul 2022 12:11:43 +0200 Subject: [PATCH] (AppState) remove outdated TODO --- Libraries/AppState/AppState.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index 99e731bd43fb55..56004947981090 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -82,11 +82,6 @@ class AppState { } } - // TODO: now that AppState is a subclass of NativeEventEmitter, we could - // deprecate `addEventListener` and `removeEventListener` and just use - // addListener` and `listener.remove()` directly. That will be a breaking - // change though, as both the method and event names are different - // (addListener events are currently required to be globally unique). /** * Add a handler to AppState changes by listening to the `change` event type * and providing the handler.