In Jest environment, header of native-stack modal is rendered twice #2569
Labels
Close when stale
This issue is going to be closed when there is no activity for a while
Missing info
The user didn't precise the problem enough
Missing repro
This issue need minimum repro scenario
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Description
In
NativeStackView.native.tsx
, theSceneView
renders both the header andMaybeNestedStack
, and thenMaybeNestedStack
checks if it's a modal, then renders the header again inside. This might be ok in real-life because we're resolving these header configs in the native world, but in Jest they just got rendered as regular components and can be duplicated.Steps to reproduce
Open a modal route in jest, then check the tree.
Snack or a link to a repository
Screens version
3.34.0
React Native version
0.73.5
Platforms
Android, iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: