#50694·expo

# [expo-ui][iOS] `measure()` is wrong for an `RNHostView` nested in SwiftUI containers, so a mouse click on a Pressable is cancelled

Author: swood09Created Sep 27, 2026Updated Sep 28, 2026
Labelsneeds reviewcontributor: external

Minimal reproducible example

https://github.com/swood09/expo-rnhostview-measure-repro

Steps to reproduce

Platform: iOS (iPadOS; an iPad is needed so both split columns show). Not tested on Android or web. Environment: development build (npx expo run:ios, Debug); not tried in a standalone build, and Expo Go does not apply (SDK 58 preview). Package manager: npm (the repo's .npmrc sets legacy-peer-deps, since the prerelease react-native 0.88.0-rc.1 never satisfies semver peer ranges).

  1. git clone https://github.com/swood09/expo-rnhostview-measure-repro && cd expo-rnhostview-measure-repro
  2. npm install
  3. npx expo run:ios and choose an iPad simulator (we used iPad Pro 13-inch (M5), iOS 27.0). The app opens on a NavigationSplitView with both columns visible, in either orientation.
  4. Tap the Sidebar box. Its "touch" and "measure" origins match (24, 206 and 24, 206).
  5. Tap Detail 1, top, then Detail 1, bottom.
    • Expected: "measure" equals "touch" in each box, as in the sidebar.
    • Actual: "measure" is 1270 pt lower than "touch" in both (344, 206 vs 344, 1476; 344, 1242 vs 344, 2512). The offset is the same for every view in the detail column.
  6. Optional, on an iPad with a mouse or trackpad: click a detail box. Expected: "onPress fired" goes up, as it does for a finger tap. Actual, in our app: onPressIn and onPressOut fire but onPress never does (see Consequence). We have not yet run this step with the repro itself on a device; the simulator's pointer arrives as a touch and does not show it.

Environment

expo-env-info 2.1.0 environment info:
    System:
      OS: macOS 27.0
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 26.8.1 - /opt/homebrew/bin/node
      npm: 11.19.0 - /opt/homebrew/bin/npm
      Watchman: 2026.07.20.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.17.0 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 27.0, iOS 27.1, macOS 27.0, tvOS 27.0, visionOS 27.0, watchOS 27.0
    IDEs:
      Android Studio: 2026.1 AI-261.25134.95.2612.15914620
      Xcode: 27.1/27A9269 - /usr/bin/xcodebuild
    npmGlobalPackages:
      expo-cli: 6.3.12

Expo Doctor Diagnostics

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