Commit f1886e0
feat: add pageSheet presentation to native stack (#12503)
**Motivation**
Since the release of iOS 18, screens with`presentation: 'modal'` changed
size on devices with a bigger screen, such as an iPad - they became much
smaller, which impacted applications of the library's users (see issue
software-mansion/react-native-screens#2549).
To address the issue, `react-native-screens` will introduce new
presentation type for native stack (`pageSheet`) that will allow users
to use previous modal behavior (see PR
software-mansion/react-native-screens#2793). The
behavior of `pageSheet` on Android will be the same as `modal`.
Please note that in `react-native-screens`, behavior of regular `modal`
has been aligned with previous behavior internally via
[`prefersPageSizing` UIKit
prop](software-mansion/react-native-screens#2797)
in order not to introduce breaking changes. In the future major release
of `react-native-screens` however this will be aligned to fully native
behavior.
This PR contains changes required to support `pageSheet` in
`react-navigation`.
**Test plan**
Open Stack Presentation and Modals example screens in example apps from
`react-native-screens` and open a `pageSheet`.1 parent 335735d commit f1886e0
3 files changed
Lines changed: 8 additions & 3 deletions
File tree
- packages/native-stack/src
- utils
- views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
0 commit comments