Skip to content

Routes displayed modally do not animate when they are dismissed with standalone app #32874

Closed
@erickreutz

Description

@erickreutz

Minimal reproducible example

https://github.com/erickreutz/expo-router-modal-back-bug-repro

Which package manager are you using? (Yarn is recommended)

bun

If the issue is web-related, please select the bundler (web.bundler in the app.json)

None

Summary

This is a weird one and was hard for me to reproduce until I ran the app outside of Expo Go. I upgraded our app to Expo 52 this morning and routes that are displayed with fullScreenModal do not animate when they are dismissed i.e. router.back(). Instead they just abruptly disappear. The catch is this bug is only present when the app is ran standalone outside of Expo Go.

Simulator.Screen.Recording.-.iPhone.16.-.2024-11-13.at.11.01.19.mp4

Steps to reproduce:

gh repo clone erickreutz/expo-router-modal-back-bug-repro
cd expo-router-modal-back-bug-repro
bun install
bun prebuild
bun ios

Environment

expo-env-info 1.2.1 environment info:
    System:
      OS: macOS 15.1
      Shell: 5.9 - /opt/homebrew/bin/zsh
    Binaries:
      Node: 18.14.1 - ~/.asdf/installs/nodejs/18.14.1/bin/node
      Yarn: 1.22.17 - ~/.asdf/shims/yarn
      npm: 9.3.1 - ~/.asdf/plugins/nodejs/shims/npm
      Watchman: 2024.11.04.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.15.2 - /Users/eric/.asdf/shims/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.1, iOS 18.1, macOS 15.1, tvOS 18.1, visionOS 2.1, watchOS 11.1
    IDEs:
      Android Studio: 2022.3 AI-223.8836.35.2231.10671973
      Xcode: 16.1/16B40 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~52.0.4 => 52.0.4 
      expo-router: ~4.0.3 => 4.0.3 
      react: 18.3.1 => 18.3.1 
      react-dom: 18.3.1 => 18.3.1 
      react-native: 0.76.1 => 0.76.1 
      react-native-web: ~0.19.13 => 0.19.13 
    npmGlobalPackages:
      eas-cli: 13.1.1
    Expo Workflow: bare

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