fix(app): keep image selections through Android Activity recreation

Keep in-flight Expo activity-result callbacks in the live AppContext until the picker returns, then release the detached registration. Run the lifecycle regression tests with the Android module suite.
This commit is contained in:
paseo-bot[bot]
2026-10-23 19:14:47 +02:00
parent d6fa231894
commit eb93fda060
3 changed files with 97 additions and 7 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ import { join, relative } from "node:path";
// the patch's node_modules/... paths relative to its working directory.
const patchedPackages = [
// Backport for expo-modules-core 57.0.23: https://github.com/expo/expo/pull/49634.
// Remove when the installed Expo SDK includes the Activity recreation fix.
// Also retain in-flight picker callbacks across same-process Activity recreation (#7557).
// Remove when the installed Expo SDK includes both Activity recreation fixes.
{
nodeModulesPath: "node_modules/expo-modules-core",
patchPrefix: "expo-modules-core+",