#50735·expo

[iOS] Link.Trigger child disappears after it remounts in a Link with Link.Menu

Author: oscnordCreated Sep 28, 2026Updated Sep 28, 2026
Labelsneeds reviewcontributor: external

Minimal reproducible example

https://github.com/oscnord/expo-link-trigger-remount

Steps to reproduce

iOS only, in Expo Go (the same happens in a development build). Package manager: npm.

  1. Clone the repository, run npm install, then npx expo start, and open the app in Expo Go on iOS. Tested on the iOS 26.5 simulator with Expo Go 57.0.9.
  2. Wait three seconds. Both cards start as a grey placeholder View inside Link.Trigger and become an orange Pressable after three seconds, as content does when it finishes loading.

Expected: both cards turn orange.

Actual: the second card, a Link with a Link.Menu, disappears and stays gone until the screen remounts. Metro logs:

[expo-router] Found a second child of <Link.Trigger>. Only one is allowed. This is most likely a bug in expo-router.

The first card is a control: the same Link without a menu turns orange.

Before After three seconds
Before After

NativeLinkPreviewView.unmountChildComponentView removes the old child but never sets directChild back to nil, so mountChildComponentView takes the new view for a second child and returns without mounting it. Any remount of the trigger's child does the same, for example a changed key. We ran into it with download rows that change from a link into a play button when the download finishes.

Environment

  expo-env-info 2.1.0 environment info:
    System:
      OS: macOS 27.0
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 24.15.0 - /Users/oscar/.nvm/versions/node/v24.15.0/bin/node
      Yarn: 1.22.22 - /Users/oscar/.nvm/versions/node/v24.15.0/bin/yarn
      npm: 11.12.1 - /Users/oscar/.nvm/versions/node/v24.15.0/bin/npm
    Managers:
      CocoaPods: 1.17.0 - /Users/oscar/.gem/ruby/2.7.5/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 27.0, iOS 27.0, macOS 27.0, tvOS 27.0, visionOS 27.0, watchOS 27.0
    IDEs:
      Android Studio: 2024.3 AI-243.25659.59.2432.13423653
      Xcode: 27.0/27A266a - /usr/bin/xcodebuild
    npmPackages:
      expo: ~57.0.25 => 57.0.25
      expo-router: ~57.0.23 => 57.0.23
      react: 19.2.3 => 19.2.3
      react-native: 0.86.3 => 0.86.3
    Expo Workflow: managed

Expo Doctor Diagnostics

Running 21 checks on your project...
21/21 checks passed. No issues detected!