Skip to content

[router] Let the outermost failing guard decide the redirect - #53450

Merged
Ubax merged 2 commits into
jakub-tkacz/eng-29037-router-use-a-replace-action-for-thefrom
jakub-tkacz/eng-29040-router-let-the-outermost-failing-guard
Nov 26, 2026
Merged

Ubax merged 2 commits into
jakub-tkacz/eng-29037-router-use-a-replace-action-for-thefrom
jakub-tkacz/eng-29040-router-let-the-outermost-failing-guard

Conversation

@Ubax

@Ubax Ubax commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Why

Use the redirect from the outermost failing guard to decide where to redirect. I find this the most natural DX for the API.

<Stack.Protected guard={true}>
  <Stack.Protected guard={false}> // <-- this one decides
    <Stack.Protected guard={false}>

How

  1. Use the redirect from the first failing guard
  2. Update docs
  3. Update tests

Test Plan

CI

Screenshots

Checklist

@linear-code

linear-code Bot commented Nov 13, 2026

Copy link
Copy Markdown

ENG-29040

@expo-bot expo-bot added the 📦 expo-router expo-router label Nov 13, 2026
@expo-bot

Copy link
Copy Markdown
Collaborator

Bug fix · 80% confidence

Preliminary assessment based on the supplied report; claims have not been verified.

  • Impact: When nested Protected guards fail together, the outermost failing guard's redirectTo (or the default redirect) now wins instead of the innermost guard's.
  • Scope: Shared expo-router flattenChild, JS only. The author says this covers Tabs, native tabs and custom navigators, but the new tests only cover Stack.
  • Platforms: Unknown
  • Labels: 📦 expo-router

@Ubax
Ubax added this pull request to stack #53449 November 13, 2026 08:55
@Ubax
Ubax force-pushed the jakub-tkacz/eng-29040-router-let-the-outermost-failing-guard branch from bd0e273 to 4734386 Compare November 18, 2026 18:44
@Ubax
Ubax removed this pull request from stack #53449 November 18, 2026 18:45
@Ubax
Ubax changed the base branch from ubax/router-remove-blocked-stack-entries to jakub-tkacz/eng-29037-router-use-a-replace-action-for-the November 18, 2026 18:45
@Ubax
Ubax added this pull request to stack #53800 November 18, 2026 18:48
@Ubax
Ubax marked this pull request as ready for review November 18, 2026 18:51
@Ubax
Ubax requested a review from hassankhan November 18, 2026 18:51
@github-actions

Copy link
Copy Markdown
Contributor

Subscribed to pull request

File Patterns Mentions
docs/** @amandeepmittal
packages/expo-router/** @Ubax, @hassankhan, @kitten

Generated by CodeMention

'expo-router': patch
---

Use the redirect of the outermost failing guard for nested protected routes. In SDK 58, the innermost failing guard decided the redirect.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use the redirect of the outermost failing guard for nested protected routes. In SDK 58, the innermost failing guard decided the redirect.
Use the redirect of the outermost failing guard for nested protected routes.

@Ubax
Ubax force-pushed the jakub-tkacz/eng-29040-router-let-the-outermost-failing-guard branch from 4734386 to 12a09ad Compare November 26, 2026 14:13
@expo-bot

Copy link
Copy Markdown
Collaborator

The Pull Request introduced fingerprint changes against the base commit: b9d7418

Fingerprint diff
[
  {
    "op": "changed",
    "beforeSource": {
      "type": "dir",
      "filePath": "../../packages/expo-media-library",
      "reasons": [
        "rncoreAutolinkingIos",
        "expoAutolinkingAndroid"
      ],
      "hash": "b297b0f44529c0f2caa8b0516c0225f198e22f8d"
    },
    "afterSource": {
      "type": "dir",
      "filePath": "../../packages/expo-media-library",
      "reasons": [
        "rncoreAutolinkingIos",
        "expoAutolinkingAndroid"
      ],
      "hash": "300b520b74106b17089f7379351b9980cf950ab1"
    }
  }
]

Generated by PR labeler 🤖

@Ubax
Ubax merged commit 65653af into main Nov 26, 2026
40 checks passed
@Ubax
Ubax deleted the jakub-tkacz/eng-29040-router-let-the-outermost-failing-guard branch November 26, 2026 15:10
@expo-bot

Copy link
Copy Markdown
Collaborator

The bot backports only pull requests that merged into main. This pull request merged into jakub-tkacz/eng-29037-router-use-a-replace-action-for-the, so the bot did not backport it to sdk-58.

To backport it by hand:

git fetch origin sdk-58
git checkout sdk-58
git pull --ff-only origin sdk-58
git cherry-pick -x 65653afbfaa8482d7b867f146d93f2d1f28b943a
git push origin sdk-58

Ubax added a commit that referenced this pull request Nov 26, 2026
## Why

Use the redirect from the outermost failing guard to decide where to
redirect. I find this the most natural DX for the API.

```tsx
<Stack.Protected guard={true}>
  <Stack.Protected guard={false}> // <-- this one decides
    <Stack.Protected guard={false}>
```

## How

1. Use the redirect from the first failing guard
2. Update docs
3. Update tests

## Test Plan

CI

## Screenshots

## Checklist

- [x] I added a changeset and followed [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [x] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)

(cherry picked from commit 65653af)
kitten pushed a commit that referenced this pull request Nov 26, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to sdk-58, this PR will be updated.


# Releases
## @expo/fingerprint@0.22.0

### Minor Changes

- Sort sources, directory entries, and autolinking arrays by code point
instead of the system locale, so the fingerprint is the same on every
machine. Fingerprints change once on upgrade for most projects.
([#53968](#53968) by
[@expo-tuft](https://github.com/apps/expo-tuft))
## expo@58.1.0

### Minor Changes

- [iOS] A module built from its checked-in Package.swift can depend on
the `ExpoModulesWorkletsHeaders` package at
`../ExpoModulesWorkletsHeaders`. The SwiftPM plugin emits that package
over the `ExpoModulesWorkletsHeaders.xcframework` from
`expo-modules-core`, together with the `ExpoModulesCoreHeaders` package
it depends on. ([#53323](#53323) by
[@chrfalch](https://github.com/chrfalch))

### Patch Changes

- Prevent false fatal errors when loading split chunks that have not
been preloaded. ([#54284](#54284) by
[@kitten](https://github.com/kitten))
- Fix `expo/fetch` handling of failures after response headers arrive.
On iOS, `Response.body` reports failures that occur before the first
read. On Android, `Response.body`, `text()`, and `arrayBuffer()` reject
when the connection fails partway through the body.
([#49324](#49324) by
[@garfieldnate](https://github.com/garfieldnate))
- Fix `expo/fetch` returning an empty or partial body from `text()` or
`arrayBuffer()` when `response.body` is read while that call waits.
`response.body` is now locked during the read, as the Fetch spec
requires. ([#53320](#53320) by
[@vonovak](https://github.com/vonovak))
- Accept patch releases of `@shopify/flash-list` (`~2.3.2` instead of
`2.3.2`), so `npx expo install --fix` no longer downgrades projects that
use `2.3.3`. ([#52961](#52961) by
[@saviocmc](https://github.com/saviocmc))
- Updated dependencies.
([#50939](#50939),
[#54140](#54140),
[#54284](#54284),
[#53831](#53831),
[#54163](#54163),
[#53887](#53887),
[#53019](#53019),
[#53393](#53393),
[#54051](#54051),
[#47993](#47993),
[#48232](#48232),
[#54321](#54321),
[#53322](#53322),
[#53454](#53454),
[#50106](#50106),
[#53675](#53675),
[#53665](#53665),
[#53968](#53968),
[#52948](#52948),
[#53917](#53917),
[#53392](#53392),
[#53731](#53731),
[#53860](#53860),
[#54179](#54179),
[#52851](#52851),
[#50966](#50966),
[#52592](#52592))
  - expo-modules-core@58.2.0
  - @expo/config-plugins@58.0.14
  - @expo/cli@58.1.22
  - expo-file-system@58.0.15
  - @expo/fingerprint@0.22.0
  - @expo/metro-config@58.0.24
  - @expo/config@58.0.13
  - babel-preset-expo@58.0.27
  - @expo/local-build-cache-provider@58.0.13
## expo-app-metrics@58.1.0

### Minor Changes

- Store no data when the `expo-observe` config plugin sets the `consent`
option to `'not-granted'`.
([#53709](#53709) by
[@Ubax](https://github.com/Ubax))
- Apply the consent value from `Observe.setConsent`. A saved value
overrides the `consent` option of the `expo-observe` config plugin on
later launches. Without consent, startup metrics stay in memory until a
grant saves them. ([#53710](#53710) by
[@Ubax](https://github.com/Ubax))
- [Internal] Add `reportFeedback` to record user feedback as an
`expo.feedback` log event.
([#53261](#53261) by
[@Ubax](https://github.com/Ubax))

### Patch Changes

- [iOS] Fixed `clearStoredEntries` doing nothing. It now deletes the
stored metrics, logs, spans, crash reports, and pending fatal errors,
while sessions that are still running keep recording.
([#51003](#51003) by
[@jiunshinn](https://github.com/jiunshinn))
- [iOS] Attribute native crash reports to the session of the crashed
process on iOS 17 and later. Before, all crashes in one MetricKit
payload went to the same session, and only the first crash was kept. A
crash of a launch that never stored a session, for example a launch that
failed before the app's code ran, now gets a new session with the app
version, build number and OS version of that launch. The metrics
database is recreated once after the update, so data that was not yet
sent is lost. ([#53973](#53973) by
[@tsapeta](https://github.com/tsapeta))
- [iOS] Fix the main session being marked inactive when the metrics
database opened in a later second than the session started.
([#54066](#54066) by
[@Ubax](https://github.com/Ubax))
- Redact credentials and signed query parameters in the redirect URLs of
network trace spans, the same as in `url.full`.
([#53688](#53688) by
[@tsapeta](https://github.com/tsapeta))
## expo-dev-launcher@58.1.0

### Minor Changes

- Sign in to the launcher on a simulator or an emulator from the
`__expo_device_code`, `__expo_device_match`, and `__expo_device_client`
launch URL params. ([#53977](#53977) by
[@gabrieldonadel](https://github.com/gabrieldonadel))
## expo-modules-core@58.2.0

### Minor Changes

- [iOS] Ship an `ExpoModulesWorkletsHeaders.xcframework` with the iOS
prebuilds. A module built from its checked-in Package.swift can depend
on the `ExpoModulesWorkletsHeaders` product to compile against
`ExpoModulesWorklets`.
([#53322](#53322) by
[@chrfalch](https://github.com/chrfalch))
- [Android] Add the `legacyAppContext` and `legacyAppContextOrNull`
extensions, which give an Expo Modules API 2.0 module or shared object
the `AppContext` of the app.
([#53860](#53860) by
[@lukmccall](https://github.com/lukmccall))

### Patch Changes

- [Android] Fixed a race in `SharedObjectRegistry` where a live shared
object passed to an async function could be reported as already released
(`UsingReleasedSharedObjectException`) while another thread added or
released a shared object.
([#50939](#50939) by
[@edwardsmatt](https://github.com/edwardsmatt))
- [iOS] Fix a crash when several concurrent functions read
`appContext.fileSystem` or `appContext.permissions` for the first time
at once, such as parallel `openDatabaseAsync` calls in `expo-sqlite`.
([#54321](#54321) by
[@intergalacticspacehighway](https://github.com/intergalacticspacehighway))
- [iOS] Fixed SwiftUI views (such as `@expo/ui`'s `Host`) rendering
nothing when mounted outside any view controller, for example inside
react-native-screens' `FullWindowOverlay`.
([#50966](#50966) by
[@finn-pleo](https://github.com/finn-pleo))
- Updated dependencies.
([#54091](#54091))
  - expo-modules-jsi@58.0.24
## expo-observe@58.1.0

### Minor Changes

- Keep Observe inactive when the config plugin sets the `consent` option
to `'not-granted'`. Observe then sends no data.
([#53709](#53709) by
[@Ubax](https://github.com/Ubax))
- Add a config plugin with a `consent` option. Prebuild writes the
consent value to `AndroidManifest.xml` and `Info.plist`.
([#53878](#53878) by
[@Ubax](https://github.com/Ubax))
- Add `Observe.reportFeedback` to send user feedback.
([#53261](#53261) by
[@Ubax](https://github.com/Ubax))
- Add `Observe.setConsent` to change the consent value at runtime. A
grant starts collection, and a revoke stops collection and deletes the
Observe data stored on the device.
([#53710](#53710) by
[@Ubax](https://github.com/Ubax))

### Patch Changes

- Add experimental navigation total blocking time (`tbt`) metric,
enabled with `experimental_totalBlockingTime`.
([#51505](#51505) by
[@Ubax](https://github.com/Ubax))
- Warn in development on iOS when the app privacy manifest has no user
content entry for `Observe.reportFeedback`.
([#53284](#53284) by
[@Ubax](https://github.com/Ubax))
- Add `ignoredMetrics` and `ignoredEvents` configure options to skip
selected metrics and events during dispatch.
([#52524](#52524) by
[@Ubax](https://github.com/Ubax))
- Send at most 128 attributes for each log event, and keep the `expo.*`
attributes first, so the server does not drop them.
([#53615](#53615) by
[@Ubax](https://github.com/Ubax))
- Updated dependencies.
([#51003](#51003),
[#53973](#53973),
[#54066](#54066),
[#53709](#53709),
[#53710](#53710),
[#53688](#53688),
[#53261](#53261))
  - expo-app-metrics@58.1.0
## @expo/cli@58.1.22

### Patch Changes

- Prevent false fatal errors when loading split chunks that have not
been preloaded. ([#54284](#54284) by
[@kitten](https://github.com/kitten))
- Detect Factory Droid, Grok Bot, Claude Cowork, and Muse in CLI
telemetry. ([#53831](#53831) by
[@davidmokos](https://github.com/davidmokos))
- Fix dev-server calling `/_expo/debugger` against the external
`REACT_NATIVE_PACKAGER_HOSTNAME` or `EXPO_PACKAGER_PROXY_URL` host
instead of its local socket.
([#54163](#54163) by
[@harpreetkbadhan](https://github.com/harpreetkbadhan))
- Fix `expo lint` and `expo run` failing right after installing a
missing package. ([#53887](#53887) by
[@ramonclaudio](https://github.com/ramonclaudio))
- Treat non-boolean `CI` values, like `CI=yes`, as false instead of
failing. ([#53019](#53019) by
[@ramonclaudio](https://github.com/ramonclaudio))
- [Internal] Include the parent CLI command in telemetry to distinguish
nested command invocations.
([#53393](#53393) by
[@davidmokos](https://github.com/davidmokos))
- Use `.cjs` filenames for CommonJS server output in projects with
`"type": "module"`. ([#54051](#54051)
by [@kitten](https://github.com/kitten))
- Improve source maps for exported API routes, server rendering, React
Server Components, and native bundles. Fix missing maps and incorrect
source paths, and consistently honor options to omit source code from
maps. ([#52948](#52948) by
[@kitten](https://github.com/kitten))
- [Internal] Read `useWatchman` as upstream Metro does, now that
`@expo/metro-config` defaults it to `false`.
([#53731](#53731) by
[@robhogan](https://github.com/robhogan))
- In `expo serve`, load exported CommonJS server modules independently
of the project module type and improve error handling.
([#52851](#52851) by
[@kitten](https://github.com/kitten))
- Updated dependencies.
([#54140](#54140),
[#54051](#54051),
[#47993](#47993),
[#48232](#48232),
[#52948](#52948),
[#53392](#53392),
[#53731](#53731),
[#54148](#54148),
[#53732](#53732),
[#53805](#53805),
[#54047](#54047),
[#53238](#53238),
[#53249](#53249),
[#54143](#54143),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
  - @expo/router-server@58.0.24
  - @expo/metro-config@58.0.24
  - @expo/metro-file-map@58.0.7
  - @expo/config@58.0.13
  - @expo/inline-modules@0.2.11
  - @expo/prebuild-config@58.0.21
## @expo/config@58.0.13

### Patch Changes

- Updated dependencies.
([#54140](#54140),
[#47993](#47993),
[#48232](#48232),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
## @expo/config-plugins@58.0.14

### Patch Changes

- Preserve Android string escape sequences, empty values, and quoted
whitespace when reading and rewriting XML resources. Discard NUL
characters while preserving the surrounding text.
([#54140](#54140) by
[@kitten](https://github.com/kitten))
- Warn about non-string values in `locales` JSON files.
([#47993](#47993) by
[@soreavis](https://github.com/soreavis))
- [Android] Mark the `expo_runtime_version` string resource as
`translatable="false"`, so localization tooling and Android Lint treat
it as the technical identifier it is rather than user-facing copy.
([#48232](#48232) by
[@ahmdshrif](https://github.com/ahmdshrif))
- Fix Android locale strings losing quotes and interpreting literal
backslashes as escape sequences.
([#54179](#54179) by
[@kitten](https://github.com/kitten))
- Keep XML formatting from mutating Android string resources and adding
extra escapes on repeated writes.
([#52592](#52592) by
[@tedy69](https://github.com/tedy69))
## @expo/inline-modules@0.2.11

### Patch Changes

- Updated dependencies.
([#54140](#54140),
[#47993](#47993),
[#48232](#48232),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
## @expo/local-build-cache-provider@58.0.13

### Patch Changes

- Updated dependencies.
  - @expo/config@58.0.13
## @expo/metro-config@58.0.24

### Patch Changes

- Improve source maps for exported API routes, server rendering, React
Server Components, and native bundles. Fix missing maps and incorrect
source paths, and consistently honor options to omit source code from
maps. ([#52948](#52948) by
[@kitten](https://github.com/kitten))
- Fix `new SharedWorker(new URL(...))` creating a dedicated `Worker`
instead of a `SharedWorker` on web.
([#53392](#53392) by
[@Gabrola](https://github.com/Gabrola))
- [Internal] `getDefaultConfig` sets `resolver.useWatchman` to `false`
in place of `null`. ([#53731](#53731)
by [@robhogan](https://github.com/robhogan))
- Updated dependencies.
  - @expo/config@58.0.13
## @expo/metro-file-map@58.0.7

### Patch Changes

- [Internal] Port `FileMap.addRoot()` and `getRoots()` from upstream
Metro, which Metro 0.88 calls.
([#54148](#54148) by
[@robhogan](https://github.com/robhogan))
- Fix symlinks repointed while Metro isn't running (for example by `pnpm
install`) resolving to their previous target. Symlinks are now stat'd
and read when the file map is built, as in upstream Metro.
([#53732](#53732) by
[@robhogan](https://github.com/robhogan))
- Port `FallbackWatcher`, the default watcher on Linux and Windows, from
upstream Metro. It starts without a stat per file or a 1s delay on
Windows, closes every watch under a deleted directory, and has the file
map recrawl a directory when Windows doesn't name what changed.
([#53805](#53805) by
[@robhogan](https://github.com/robhogan))
- Without Watchman, files are now stat'd only once Metro derives data
from them, and a start stats only those files. This fixes plugin data
(e.g. dependencies) that could go stale when a file was edited while
Metro wasn't running, and recrawls that could miss changes to files that
had not been stat'd yet.
([#54047](#54047) by
[@robhogan](https://github.com/robhogan))
- Process files synchronously in-band, as upstream `metro-file-map`
does. This makes lazy SHA-1 computation and worker-thread crawls faster.
For `unstable_fileMapPlugins` workers, `getContent()` returns a `Buffer`
again rather than a promise, matching upstream.
([#53238](#53238) by
[@robhogan](https://github.com/robhogan))
- [Internal] Port `TreeFS` from upstream Metro's `main`, with
`getSerializableState()` from react/metro#2219, keeping the on-demand
filesystem, lazy symlink reads and snapshot root filtering.
([#53249](#53249) by
[@robhogan](https://github.com/robhogan))
- Fix files changed while Metro starts being missed until a restart. On
macOS, also fix changes made straight after startup sometimes being
missed. ([#54143](#54143) by
[@robhogan](https://github.com/robhogan))
- [Internal] Read `useWatchman` as upstream Metro does, now that
`@expo/metro-config` defaults it to `false`.
([#53731](#53731) by
[@robhogan](https://github.com/robhogan))
## @expo/prebuild-config@58.0.21

### Patch Changes

- Updated dependencies.
([#54140](#54140),
[#47993](#47993),
[#48232](#48232),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
  - @expo/config@58.0.13
## @expo/router-server@58.0.24

### Patch Changes

- Use `.cjs` filenames for CommonJS server output in projects with
`"type": "module"`. ([#54051](#54051)
by [@kitten](https://github.com/kitten))
## create-expo@5.1.10

### Patch Changes

- Preserve empty values, repeated spaces, and XML-forbidden characters
in Android template display names. Discard NUL characters while
preserving the surrounding text.
([#54140](#54140) by
[@kitten](https://github.com/kitten))
- Treat non-boolean `CI` values, like `CI=yes`, as false instead of
failing. ([#53019](#53019) by
[@ramonclaudio](https://github.com/ramonclaudio))
## expo-app-intents@0.5.19

### Patch Changes

- Updated dependencies.
([#53984](#53984),
[#51972](#51972),
[#54090](#54090),
[#54068](#54068),
[#53781](#53781),
[#53765](#53765),
[#53399](#53399),
[#47930](#47930),
[#54014](#54014),
[#52653](#52653),
[#53573](#53573),
[#53767](#53767),
[#51607](#51607),
[#52899](#52899),
[#53294](#53294),
[#54060](#54060))
  - @expo/ui@58.0.30
## expo-auth-session@58.0.20

### Patch Changes

- Updated dependencies.
([#54151](#54151))
  - expo-crypto@58.0.9
## expo-codemod@58.0.2

### Patch Changes

- Fix the React Navigation codemod skipping supported imports in files
that also contain unsupported imports.
([#48941](#48941) by
[@ahmdshrif](https://github.com/ahmdshrif))
- Fix `sdk-56-expo-router-react-navigation-replace` silently skipping
named re-exports (`export { A } from '@react-navigation/...'`), which
are now rewritten like named imports. Re-export styles that cannot be
rewritten (`export *`, `export * as ns from`, `export v from`, `export {
default as X } from`), `jest` module calls (`mock`, `doMock`, `unmock`,
`setMock`, `requireActual`, `requireMock`, `createMockFromModule`), and
inline `import("...")` types outside call type arguments referencing
`@react-navigation/*` modules are reported for manual migration.
([#48942](#48942) by
[@ahmdshrif](https://github.com/ahmdshrif))
## expo-crypto@58.0.9

### Patch Changes

- [Android] Fix AES-GCM decryption returning extra zero bytes on devices
that overestimate the required output size.
([#54151](#54151) by
[@huamurui](https://github.com/huamurui))
## expo-dev-client@58.0.22

### Patch Changes

- Updated dependencies.
([#53977](#53977))
  - expo-dev-launcher@58.1.0
## expo-doctor@1.21.9

### Patch Changes

- Fix dependency checks failing with `EBADDEVENGINES` in projects whose
`devEngines.packageManager` is not npm.
([#53443](#53443) by
[@Sun-Wukhan](https://github.com/Sun-Wukhan))
- Treat non-boolean `CI` values, like `CI=yes`, as false instead of
failing. ([#53019](#53019) by
[@ramonclaudio](https://github.com/ramonclaudio))
## expo-file-system@58.0.15

### Patch Changes

- [iOS] Fix the app never calling the system completion handler of
`handleEventsForBackgroundURLSession`, for `expo-file-system` background
downloads and for background sessions of other modules.
([#53454](#53454) by
[@zocario](https://github.com/zocario))
- [iOS] Fix a crash when a `DownloadTask` or `UploadTask` is cancelled
or garbage-collected at the moment its request completes.
([#50106](#50106) by
[@isaacrowntree](https://github.com/isaacrowntree))
- [Android] Fix `copy()` and `move()` with `overwrite: true` deleting
the source when the destination is a SAF (`content://`) document that is
the source or contains it. These calls now throw instead.
([#53675](#53675) by
[@barthap](https://github.com/barthap))
- Fix `copy()` and `move()` with `overwrite: true` deleting the source
when the destination resolves to the source or to a directory that
contains it. These calls now throw instead.
([#53665](#53665) by
[@barthap](https://github.com/barthap))
- [iOS] Fix upload task and download task progress sending `bytesSent`,
`bytesWritten` and `totalBytes` as `bigint` instead of `number`.
([#53917](#53917) by
[@tareksabry1337](https://github.com/tareksabry1337))
## expo-glass-effect@58.0.6

### Patch Changes

- [iOS] Add a checked-in Package.swift so that the Expo SwiftPM plugin
builds the module directly from it.
([#53210](#53210) by
[@chrfalch](https://github.com/chrfalch))
## expo-image@58.0.19

### Patch Changes

- [iOS] Keep the rendered image when the view's size changes and the
image is still suitable for display at the new size. Also round the
downscaled image size to the nearest pixel. This helps scaled images
keep their aspect ratio as best as possible.
([#52424](#52424) by
[@ide](https://github.com/ide))
- [iOS] Decode AVIF with libdav1d instead of libaom in the precompiled
framework, to match source builds and reduce memory use.
([#52640](#52640) by
[@alanjhughes](https://github.com/alanjhughes))
## expo-location@58.0.23

### Patch Changes

- [Android] Fix a `ConcurrentModificationException` crash in the motion
activity receiver and stop `removeWatchAsync` from requiring the
location permission. ([#53919](#53919)
by [@HubertBer](https://github.com/HubertBer))
- Add a `timeout` option to `getMotionActivityAsync` that rejects with
`ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT` when no activity update arrives
in time. ([#53920](#53920) by
[@HubertBer](https://github.com/HubertBer))
- [next][iOS] Send `null` instead of omitting the unavailable `Position`
fields in task and watcher payloads.
([#53093](#53093) by
[@Wenszel](https://github.com/Wenszel))
## expo-modules-jsi@58.0.24

### Patch Changes

- Fix a deadlock on iOS when a JavaScript error clears the React Native
scheduler queues on the main thread, during an event that a native view
dispatches with `experimental_flushSync`. A promise or callback that is
dropped on the main thread now schedules the release of its state from
another thread, as it already did on the JavaScript thread.
([#54091](#54091) by
[@intergalacticspacehighway](https://github.com/intergalacticspacehighway))
## expo-network@58.0.6

### Patch Changes

- [Android] Emit a network state event when the OS blocks or unblocks
the app's network access (`onBlockedStatusChanged`). On Android 15 and
newer, a backgrounded app now receives `isConnected: false` while the OS
blocks it and `isConnected: true` when the app returns to the
foreground. ([#52815](#52815) by
[@Subhash-Dhandhukiya](https://github.com/Subhash-Dhandhukiya))
## expo-notifications@58.1.10

### Patch Changes

- [iOS] `requestPermissionsAsync` now resolves with the denied status,
instead of rejecting with `ERR_PERMISSIONS_REQUEST_NOTIFICATIONS`, when
the user denies the prompt in an iOS app on an Apple Silicon Mac
("Designed for iPad").
([#52828](#52828) by
[@LizunovSergey](https://github.com/LizunovSergey))
## expo-router@58.0.33

### Patch Changes

- Use the label of `Stack.Toolbar.Button` and `Stack.Toolbar.Menu` as
the TalkBack description on Android when `accessibilityLabel` is not
set. ([#54293](#54293) by
[@Ubax](https://github.com/Ubax))
- Fix `router.navigate()` between routes of a layout with multiple
dynamic segments, such as `[org]/[project]`.
([#51571](#51571) by
[@Arthur031221](https://github.com/Arthur031221))
- [iOS] `Link.Trigger` is now in the accessibility tree when the link
has a `Link.Preview` or a `Link.Menu`. The children of `Link.AppleZoom`
and `Link.AppleZoomTarget` are now in the accessibility tree too.
([#54297](#54297) by
[@Ubax](https://github.com/Ubax))
- [iOS] Fix `accessibilityLabel` and `accessibilityHint` not being
applied to `Stack.Toolbar.Button` in the bottom toolbar.
([#54294](#54294) by
[@Ubax](https://github.com/Ubax))
- On iOS, `disabled` now disables the bottom toolbar button that opens a
`Stack.Toolbar.Menu`. ([#54295](#54295)
by [@Ubax](https://github.com/Ubax))
- Use the text of a hidden `NativeTabs.Trigger.Label` as the
accessibility label of the tab on Android and iOS.
([#54292](#54292) by
[@Ubax](https://github.com/Ubax))
- `NativeTabs` shows a `Trigger` wrapped in `Protected` when its guard
passes, and hides that tab when the guard fails.
([#51802](#51802) by
[@maaz-bin-hassan](https://github.com/maaz-bin-hassan))
- Throw an error when an external URL is passed as `redirectTo` for
`Protected`. ([#53841](#53841) by
[@Ubax](https://github.com/Ubax))
- Fix unhandled `REMOVE_ROUTES` warning when a stack with
`Stack.Protected` unmounts during startup.
([#53415](#53415) by
[@Ubax](https://github.com/Ubax))
- Fix an infinite loop when a `Stack.Protected` guard falls back to a
route from the `redirects` config.
([#53632](#53632) by
[@Ubax](https://github.com/Ubax))
- [iOS] Fix a `Link.Trigger` child disappearing when it remounts inside
a `Link` with `Link.Menu` or `Link.Preview`.
([#50736](#50736) by
[@oscnord](https://github.com/oscnord))
- Made `@react-native-masked-view/masked-view` an optional peer
dependency. Install it to keep the masked back button label on iOS in
`expo-router/js-stack`.
([#53733](#53733) by
[@theeket](https://github.com/theeket))
- Use the redirect of the outermost failing guard for nested protected
routes. ([#53450](#53450) by
[@Ubax](https://github.com/Ubax))
- Keep the module-level `router` and `useNavigationContainerRef()`
working after an Android Activity relaunch.
([#53447](#53447) by
[@Ubax](https://github.com/Ubax))
- Port React Navigation accessibility fixes: use `aria-current` for the
focused drawer item on web, expose the disabled state of
`PlatformPressable`, and fix a JS stack screen that ignored touches
after a route below a transparent modal was removed.
([#54296](#54296) by
[@Ubax](https://github.com/Ubax))
- Fix a redirect loop when a protected route without `redirectTo` shares
its URL with the fallback route.
([#53426](#53426) by
[@Ubax](https://github.com/Ubax))
- Match redirect and rewrite sources against the full path in the app,
the same as the server. Use a catch-all source such as `/old/[...path]`
to redirect child paths.
([#53634](#53634) by
[@Ubax](https://github.com/Ubax))
- [iOS] `SplitView` now applies the left and right safe area insets to
its columns, main content, and inspector when it shows more than one
column. Set `horizontalSafeAreaInsets` to change this.
([#52391](#52391) by
[@Ubax](https://github.com/Ubax))
- Add the `unstable_requiredScreensBelow` prop to `Stack.Screen` to add
screens below a screen when a deep link or a navigation adds it to the
stack. ([#51695](#51695) by
[@Ubax](https://github.com/Ubax))
- [web] Make the "Go back" control on the default 404 screen work with
the keyboard and screen readers.
([#54291](#54291) by
[@Ubax](https://github.com/Ubax))
- Updated dependencies.
([#53210](#53210))
  - expo-glass-effect@58.0.6
## expo-sharing@58.0.24

### Patch Changes

- [iOS] Fix a crash on iPad when `shareAsync()` is called while an
earlier share sheet is still on screen.
([#54075](#54075) by
[@beqramo](https://github.com/beqramo))
- Updated dependencies.
([#54140](#54140),
[#47993](#47993),
[#48232](#48232),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
## expo-splash-screen@58.0.15

### Patch Changes

- Updated dependencies.
([#54140](#54140),
[#47993](#47993),
[#48232](#48232),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
## @expo/ui@58.0.30

### Patch Changes

- [Android] Add `contentWindowInsets` to `ModalBottomSheet` and the
community `BottomSheet`, so a sheet's content can scroll under the
navigation bar. ([#53984](#53984) by
[@andreialecu](https://github.com/andreialecu))
- [Android] Fix bottom sheet modals closing when the snap point count
changes. ([#51972](#51972) by
[@tacheraSasi](https://github.com/tacheraSasi))
- [Android] Fix `maxLength` in `TextField` and the universal `TextInput`
keeping half of an emoji, or a letter without its combining mark, when
the text reaches the limit.
([#54090](#54090) by
[@intergalacticspacehighway](https://github.com/intergalacticspacehighway))
- [Android] Mark the selected option in the `Picker` menu with a check
and a highlighted container.
([#54068](#54068) by
[@miniware9](https://github.com/miniware9))
- [Android] Fix time pickers ignoring `variant="input"` and
`display="spinner"`, and add `variant` to `TimePickerDialog`.
([#53781](#53781) by
[@expo-bot](https://github.com/expo-bot))
- [Android] Fix time pickers showing a 24-hour clock on devices set to a
12-hour clock. When `is24Hour` is not set, the Jetpack Compose
`DateTimePicker` and `TimePickerDialog` and the community
`DateTimePicker` now follow the device's 12-hour or 24-hour setting, as
`@react-native-community/datetimepicker` does. Set `is24Hour` to `true`
to keep the 24-hour clock.
([#53765](#53765) by
[@miniware9](https://github.com/miniware9))
- Add a `modifiers` prop to the community `BottomSheet`.
([#53399](#53399) by
[@dileepapeiris](https://github.com/dileepapeiris))
- [Android] Add the `primaryEditable` and `secondaryEditable` anchor
types to the `menuAnchor` modifier. An editable text field, such as an
autocomplete, then keeps its cursor and keyboard input while the menu is
open. ([#47930](#47930) by
[@yassine-drafate](https://github.com/yassine-drafate))
- [iOS] Fix `maxLength` in `TextField`, `SecureField` and the universal
`TextInput` counting characters rather than UTF-16 code units, which let
ten 👍 into a field with `maxLength={10}`. iOS now counts UTF-16 code
units, as Android, web and React Native's `TextInput` do, and cuts text
between characters. ([#54014](#54014)
by [@miniware9](https://github.com/miniware9))
- [iOS] Add the `renderingMode` modifier for `Image`. With
`renderingMode('template')`, an image fills its opaque pixels with the
foreground style, as SF Symbols do.
([#52653](#52653) by
[@matiaspan](https://github.com/matiaspan))
- Fix TypeScript rejecting a `PlatformColor` as the text color of the
universal `Text`, `TextInput`, and `Collapsible`. The `color` of
`UniversalTextStyle` is now a `ColorValue`.
([#53573](#53573) by
[@miniware9](https://github.com/miniware9))
- [Web] Fix a universal `TextInput` that did not show a `set()` write to
its `value` state when the React Compiler compiled the component that
created the state. `useNativeState` on web now returns a new object each
time its value changes.
([#53767](#53767) by
[@expo-bot](https://github.com/expo-bot))
- [web] Fix a React Native `Modal` opened from `BottomSheet` content
rendering under the sheet and ignoring clicks.
([#51607](#51607) by
[@expo-bot](https://github.com/expo-bot))
- [Android] Fix `Icon` and `Image` drawing a vector drawable resource
shifted or clipped when it uses `<group>` transforms, clip paths or
gradients. Drawables referenced by resource name are now inflated by
Compose. ([#52899](#52899) by
[@MarkusWendorf](https://github.com/MarkusWendorf))
- [iOS] Fix the community `BottomSheet` moving to the wrong detent for a
frame when its `index` and `snapPoints` change together.
([#53294](#53294) by
[@Hassan1305](https://github.com/Hassan1305))
- [iOS] Make `Toggle` public like `Button`, and return the value of its
`onIsOnChange` callback.
([#54060](#54060) by
[@iftype](https://github.com/iftype))
## expo-updates@58.0.23

### Patch Changes

- [Android] Create the embedded fingerprint and manifest on every build,
so a repeat release build does not embed a stale runtime version after a
native change. ([#53906](#53906) by
[@sivefunc](https://github.com/sivefunc))
## expo-widgets@58.0.30

### Patch Changes

- Updated dependencies.
([#53984](#53984),
[#51972](#51972),
[#54090](#54090),
[#54068](#54068),
[#53781](#53781),
[#53765](#53765),
[#53399](#53399),
[#47930](#47930),
[#54014](#54014),
[#52653](#52653),
[#53573](#53573),
[#53767](#53767),
[#51607](#51607),
[#52899](#52899),
[#53294](#53294),
[#54060](#54060))
  - @expo/ui@58.0.30
## jest-expo@58.0.16

### Patch Changes

- Add `setConsent` to the `ExpoObserve` mock.
([#53710](#53710) by
[@Ubax](https://github.com/Ubax))
## patch-project@58.0.22

### Patch Changes

- Updated dependencies.
([#54140](#54140),
[#47993](#47993),
[#48232](#48232),
[#54179](#54179),
[#52592](#52592))
  - @expo/config-plugins@58.0.14
  - @expo/config@58.0.13
## expo-template-bare-minimum@58.0.36

### Patch Changes

- [iOS] Remove the unused `FB_SONARKIT_ENABLED` preprocessor define from
the Xcode project. ([#53748](#53748) by
[@chrfalch](https://github.com/chrfalch))
- Updated dependencies.
([#54284](#54284),
[#49324](#49324),
[#53323](#53323),
[#53320](#53320),
[#52961](#52961))
  - expo@58.1.0
## expo-template-blank@58.0.36

### Patch Changes

- Updated dependencies.
([#54284](#54284),
[#49324](#49324),
[#53323](#53323),
[#53320](#53320),
[#52961](#52961))
  - expo@58.1.0
## expo-template-blank-typescript@58.0.36

### Patch Changes

- Updated dependencies.
([#54284](#54284),
[#49324](#49324),
[#53323](#53323),
[#53320](#53320),
[#52961](#52961))
  - expo@58.1.0
## expo-template-default@58.0.36

### Patch Changes

- Updated dependencies.
([#53984](#53984),
[#51972](#51972),
[#54293](#54293),
[#51571](#51571),
[#54284](#54284),
[#49324](#49324),
[#53210](#53210),
[#54297](#54297),
[#54294](#54294),
[#53323](#53323),
[#54090](#54090),
[#54068](#54068),
[#53781](#53781),
[#53765](#53765),
[#53399](#53399),
[#47930](#47930),
[#54014](#54014),
[#52653](#52653),
[#53573](#53573),
[#53767](#53767),
[#51607](#51607),
[#53320](#53320),
[#52961](#52961),
[#52424](#52424),
[#52640](#52640),
[#54295](#54295),
[#54292](#54292),
[#51802](#51802),
[#53841](#53841),
[#53415](#53415),
[#53632](#53632),
[#50736](#50736),
[#53733](#53733),
[#53450](#53450),
[#53447](#53447),
[#54296](#54296),
[#53426](#53426),
[#53634](#53634),
[#52391](#52391),
[#51695](#51695),
[#54291](#54291),
[#52899](#52899),
[#53294](#53294),
[#54060](#54060))
  - @expo/ui@58.0.30
  - expo-router@58.0.33
  - expo@58.1.0
  - expo-glass-effect@58.0.6
  - expo-image@58.0.19
  - expo-splash-screen@58.0.15
## expo-template-tabs@58.0.36

### Patch Changes

- Updated dependencies.
([#54293](#54293),
[#51571](#51571),
[#54284](#54284),
[#49324](#49324),
[#54297](#54297),
[#54294](#54294),
[#53323](#53323),
[#53320](#53320),
[#52961](#52961),
[#54295](#54295),
[#54292](#54292),
[#51802](#51802),
[#53841](#53841),
[#53415](#53415),
[#53632](#53632),
[#50736](#50736),
[#53733](#53733),
[#53450](#53450),
[#53447](#53447),
[#54296](#54296),
[#53426](#53426),
[#53634](#53634),
[#52391](#52391),
[#51695](#51695),
[#54291](#54291))
  - expo-router@58.0.33
  - expo@58.1.0
  - expo-splash-screen@58.0.15
## babel-preset-expo@58.0.27

No changes in this release.
## expo-standard-web-crypto@58.0.7

No changes in this release.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants