From 7d3525b65c963280aafc9a3b1decbcc30066d7ad Mon Sep 17 00:00:00 2001 From: Chester Wood Date: Thu, 22 Jan 2026 00:08:05 -0700 Subject: [PATCH 1/3] Update memoryWarning event description to mention it is iOS only This event is iOS only, and the current documentation does not mention that fact. Also, it incorrectly states that the event fires when when a memory warning is "thrown or released". In fact, there is no event when memory pressure is released. See https://github.com/facebook/react-native/issues/36426 and https://github.com/facebook/react-native/issues/47951 --- docs/appstate.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/appstate.md b/docs/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/docs/appstate.md +++ b/docs/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
From 06e7f54c28662d35bb10327327c2bbd90550ca35 Mon Sep 17 00:00:00 2001 From: Chester Wood Date: Thu, 22 Jan 2026 14:36:59 -0700 Subject: [PATCH 2/3] Update memoryWarning iOS label in all versioned docs Apply the same changes to all versioned documentation (0.77-0.83): - Add iOS platform label to memoryWarning event - Improve event description clarity --- website/versioned_docs/version-0.77/appstate.md | 4 ++-- website/versioned_docs/version-0.78/appstate.md | 4 ++-- website/versioned_docs/version-0.79/appstate.md | 4 ++-- website/versioned_docs/version-0.80/appstate.md | 4 ++-- website/versioned_docs/version-0.81/appstate.md | 4 ++-- website/versioned_docs/version-0.82/appstate.md | 4 ++-- website/versioned_docs/version-0.83/appstate.md | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/website/versioned_docs/version-0.77/appstate.md b/website/versioned_docs/version-0.77/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.77/appstate.md +++ b/website/versioned_docs/version-0.77/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
diff --git a/website/versioned_docs/version-0.78/appstate.md b/website/versioned_docs/version-0.78/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.78/appstate.md +++ b/website/versioned_docs/version-0.78/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
diff --git a/website/versioned_docs/version-0.79/appstate.md b/website/versioned_docs/version-0.79/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.79/appstate.md +++ b/website/versioned_docs/version-0.79/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
diff --git a/website/versioned_docs/version-0.80/appstate.md b/website/versioned_docs/version-0.80/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.80/appstate.md +++ b/website/versioned_docs/version-0.80/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
diff --git a/website/versioned_docs/version-0.81/appstate.md b/website/versioned_docs/version-0.81/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.81/appstate.md +++ b/website/versioned_docs/version-0.81/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
diff --git a/website/versioned_docs/version-0.82/appstate.md b/website/versioned_docs/version-0.82/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.82/appstate.md +++ b/website/versioned_docs/version-0.82/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
diff --git a/website/versioned_docs/version-0.83/appstate.md b/website/versioned_docs/version-0.83/appstate.md index f88c7e61c96..3aa1d9acdce 100644 --- a/website/versioned_docs/version-0.83/appstate.md +++ b/website/versioned_docs/version-0.83/appstate.md @@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning` +### `memoryWarning`
iOS
-This event is used in the need of throwing memory warning or releasing it. +Fires when the app receives a memory warning from the operating system. ### `focus`
Android
From 13d9b05af69709af8098948f4c493c9e0481feb8 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Sat, 24 Jan 2026 18:42:29 +0100 Subject: [PATCH 3/3] lint fix --- docs/appstate.md | 2 +- website/versioned_docs/version-0.77/appstate.md | 2 +- website/versioned_docs/version-0.78/appstate.md | 2 +- website/versioned_docs/version-0.79/appstate.md | 2 +- website/versioned_docs/version-0.80/appstate.md | 2 +- website/versioned_docs/version-0.81/appstate.md | 2 +- website/versioned_docs/version-0.82/appstate.md | 2 +- website/versioned_docs/version-0.83/appstate.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/appstate.md b/docs/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/docs/appstate.md +++ b/docs/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.77/appstate.md b/website/versioned_docs/version-0.77/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.77/appstate.md +++ b/website/versioned_docs/version-0.77/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.78/appstate.md b/website/versioned_docs/version-0.78/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.78/appstate.md +++ b/website/versioned_docs/version-0.78/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.79/appstate.md b/website/versioned_docs/version-0.79/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.79/appstate.md +++ b/website/versioned_docs/version-0.79/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.80/appstate.md b/website/versioned_docs/version-0.80/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.80/appstate.md +++ b/website/versioned_docs/version-0.80/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.81/appstate.md b/website/versioned_docs/version-0.81/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.81/appstate.md +++ b/website/versioned_docs/version-0.81/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.82/appstate.md b/website/versioned_docs/version-0.82/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.82/appstate.md +++ b/website/versioned_docs/version-0.82/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system. diff --git a/website/versioned_docs/version-0.83/appstate.md b/website/versioned_docs/version-0.83/appstate.md index 3aa1d9acdce..f264fdc7c7f 100644 --- a/website/versioned_docs/version-0.83/appstate.md +++ b/website/versioned_docs/version-0.83/appstate.md @@ -82,7 +82,7 @@ This example will only ever appear to say "Current state is: active" because the This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states). -### `memoryWarning`
iOS
+### `memoryWarning`
iOS
Fires when the app receives a memory warning from the operating system.