<Modal> Component Not Appearing Correctly in Component Tree #49717
Labels
Component: Modal
Needs: Triage 🔍
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
NOTE: This bug was NOT present on the old architecture. As soon as I set
newArch: enabled
, this bug appeared.Another note: I did not file this issue in
react-navigation
because I reproduced this in react navigation v6 and v7 and this bug only was present on both versions. It only appeared when I setnewArch: enabled
and it appears to be related to the<Modal />
component.The repro provided below should be very easy to reproduce (refer to videos).
I have a modal component like so:
And I trigger the setShowModal(true), it is actually appearing behind my screen (or just not at all) in the new architecture instead of above.
On the component tree, I have this Modal component at the very top, so this should definitely not occur.
Steps to reproduce
yarn install
npx expo run:ios
Open Modal
button.Show react native modal
buttonWhat should happen here is a green full screen modal should appear but nothing happens at all.
Go through the same sequence and it works just fine.
React Native Version
0.76.7
Affected Platforms
Runtime - iOS
Areas
Bridgeless - The New Initialization Flow
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/ChristopherGabba/Modal_Repro
Screenshots and Videos
Here is a video of it working correctly when the
presentation: "transparentModal"
is commented out:ScreenRecording_02-27-2025.06-28-00_1.MP4
Here is a video of it not showing up at all when
presentation: "transparentModal"
is NOT commented out:ScreenRecording_02-27-2025.06-29-29_1.MP4
The text was updated successfully, but these errors were encountered: