-
-
Notifications
You must be signed in to change notification settings - Fork 575
Description
Description
Current behavior
I built my app with xcode beta 4 for iOS 26 ( ios26 ) and the top of my content in presentation: "modal"
was hidden under the header:
Added headerStyle: { backgroundColor: "red" },
to show that it really hidden under header:
Expected behavior
I expect that content will be rendered below the header for both old iOS 18.6 and iOS 26.
By adding this workaround: contentStyle: { paddingTop: Platform.OS === "ios" && Number(Platform.Version) >= 26 ? 24 : 0 }
I reached the expected result. But having things like so in the code base is bad practice; these things should be handled inside the lib globally.
Expected result with red header:
Steps to reproduce
- Build your app with Xcode Beta 4 for ios26
- Create a screen with
presentation: "modal"
- Open it when at least title in header exist
- See the issue with current behavior
Snack or a link to a repository
Can't be reproduces in any way except build app with Xcode Beta 4 for ios26
Screens version
4.13.1
React Native version
0.77.2
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
Paper (Old Architecture)
Build type
None
Device
iOS simulator
Device model
any iOS 26
Acknowledgements
Yes