Skip to content

[pull] main from expo:main#5

Merged
pull[bot] merged 7 commits into
code:mainfrom
expo:main
Jul 15, 2025
Merged

[pull] main from expo:main#5
pull[bot] merged 7 commits into
code:mainfrom
expo:main

Conversation

@pull

@pull pull Bot commented Jul 15, 2025

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

amandeepmittal and others added 7 commits July 15, 2025 16:02
# Why

Because of [this logic in
react-native-screens](https://github.com/software-mansion/react-native-screens/blob/62eb784c6457be366a2daf6d6d074b7a586fa61e/ios/RNSScreenStack.mm#L537-L570),
when navigating to modal context menu was dismissed before it emitted
any events to JS. Therefore the navigation only happened on native side
and left application in not updated state.

## Before


https://github.com/user-attachments/assets/481b80c9-d6f3-4232-b02d-a306aa5a80c3

## After


https://github.com/user-attachments/assets/58a36c45-efba-4e89-be01-fe021f6c87a6

# How

1. Adding a patch to screens, so that we can prevent the dismissal of
preview
2. Moving the navigation to inside `animation.addCompletion`, as this is
the proper place to present modals in UIKit.
3. Adding a logic to set the activity state of inner screen in case
modal has a header due to
https://github.com/software-mansion/react-native-screens/blob/8b82e081e8fdfa6e0864821134bda9e87a745b00/src/components/ScreenStackItem.tsx#L146-L160

# Test Plan

Manual testing

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
-->

- [x] I added a `changelog.md` entry and rebuilt the package sources
according to [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).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
@pull pull Bot locked and limited conversation to collaborators Jul 15, 2025
@pull pull Bot added the ⤵️ pull label Jul 15, 2025
@pull pull Bot merged commit 10ee03a into code:main Jul 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants