Skip to content

Compatiblity with maestro for tests #353

@wcastand

Description

@wcastand

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

Maestro has an issue with fullscreen view in general because altho their are transparent for the user, they actually block maestro to see the view hierarchy and interact with those, which makes it impossible to write maestro tests.

the bottom sheet is the guilty one for this issue.
I use true sheet to prevent @gorhom/bottom-sheet
i think react-native-screen also provide a new props to help with that but not sure portal from @gorhom/bottom-sheet do :/

Is this something you plan to support and make sure it's working?

Library version

1.0.0

Environment info

expo-env-info 2.0.11 environment info:
    System:
      OS: macOS 26.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 24.13.1 - ~/.nvm/versions/node/v24.13.1/bin/node
      npm: 11.11.1 - ~/.nvm/versions/node/v24.13.1/bin/npm
      Watchman: 2026.01.12.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 25.2, iOS 26.2, macOS 26.2, tvOS 26.2, visionOS 26.2, watchOS 26.2
      Android SDK:
        API Levels: 31, 34, 35, 36
        Build Tools: 35.0.0, 36.0.0
        System Images: android-35 | Google Play ARM 64 v8a, android-36.1 | Google APIs ARM 64 v8a, android-36.1 | Google Play ARM 64 v8a, android-36 | Google Play ARM 64 v8a, android-36 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
    IDEs:
      Android Studio: 2025.2 AI-252.28238.7.2523.14688667
      Xcode: 26.3/17C529 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^55.0.8 => 55.0.8
      expo-router: ~55.0.7 => 55.0.7
      expo-updates: ~55.0.15 => 55.0.15
      react: 19.2.0 => 19.2.0
      react-dom: 19.2.0 => 19.2.0
      react-native: 0.83.2 => 0.83.2
      react-native-web: ^0.21.0 => 0.21.2
    npmGlobalPackages:
      eas-cli: 18.3.0
    Expo Workflow: bare

Steps to reproduce

  1. launch the app
  2. open maestro studio
  3. use the inspect element and see that there is an overlay over the hierarchy (bottom sheet)

Reproducible example repository

https://github.com/wcastand/hero-maestro-bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions