Commit ecda311
authored
chore: Update FormSheet-SAV integration test to cover
## Description
Update react-navigation & add a prop to the example.
The case with a double top inset in the first video test is acceptable
and expected, because all top inset behavior combinations can already be
covered using other configuration options.
We can cover all visual scenarios by adjusting the
`sheetShouldOverflowTopInset` prop and the use of `SafeAreaView` with
the top edge enabled or disabled:
1. Background and content overflow behind the status bar
- sheetShouldOverflowTopInset: true
- SafeAreaView top: disabled
2. Background overflows, but content respects the SafeArea and avoids
the status bar
- sheetShouldOverflowTopInset: true
- SafeAreaView top: enabled
3. Both background and content respect the SafeArea (no overflow)
- sheetShouldOverflowTopInset: false
Because these three combinations fully cover all possible variants of
top inset behavior, we don't need to treat the double top inset as a
bug. It's just one of the valid configurations, and it works correctly
depending on how the developer configures their SafeArea usage, combined
with Sheet overflow settings.
Fixes:
software-mansion/react-native-screens-labs#568
## Changes
- Updated `react-navigation` to
react-navigation/react-navigation@2b7ee0d
- Updated `Test3336`
## Screenshots / GIFs
Here you can add screenshots / GIFs documenting your change.
You can add before / after section if you're changing some behavior.
https://github.com/user-attachments/assets/4fd0863a-a6d4-44d0-9472-21e468802034
## Test code and steps to reproduce
Test3336
Note: double inset in the 1st test is
## Checklist
- [x] Included code example that can be used to test this change
- [x] Ensured that CI passessheetShouldOverflowTopInset (#3503)1 parent 06a5812 commit ecda311
2 files changed
+52
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
| |||
71 | 84 | | |
72 | 85 | | |
73 | 86 | | |
74 | | - | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
| 93 | + | |
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| 98 | + | |
84 | 99 | | |
85 | 100 | | |
86 | 101 | | |
| |||
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
94 | 112 | | |
95 | 113 | | |
96 | 114 | | |
| |||
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
103 | 127 | | |
104 | 128 | | |
105 | 129 | | |
| |||
124 | 148 | | |
125 | 149 | | |
126 | 150 | | |
127 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
128 | 154 | | |
129 | 155 | | |
130 | 156 | | |
131 | 157 | | |
132 | 158 | | |
133 | 159 | | |
134 | | - | |
135 | | - | |
| 160 | + | |
| 161 | + | |
136 | 162 | | |
137 | 163 | | |
138 | 164 | | |
| |||
241 | 267 | | |
242 | 268 | | |
243 | 269 | | |
| 270 | + | |
244 | 271 | | |
245 | 272 | | |
246 | 273 | | |
247 | 274 | | |
248 | 275 | | |
| 276 | + | |
249 | 277 | | |
250 | 278 | | |
251 | 279 | | |
| |||
257 | 285 | | |
258 | 286 | | |
259 | 287 | | |
| 288 | + | |
260 | 289 | | |
261 | 290 | | |
262 | 291 | | |
263 | 292 | | |
| 293 | + | |
264 | 294 | | |
265 | 295 | | |
266 | 296 | | |
| |||
275 | 305 | | |
276 | 306 | | |
277 | 307 | | |
278 | | - | |
| 308 | + | |
279 | 309 | | |
280 | 310 | | |
281 | 311 | | |
| |||
287 | 317 | | |
288 | 318 | | |
289 | 319 | | |
290 | | - | |
| 320 | + | |
291 | 321 | | |
292 | 322 | | |
293 | 323 | | |
| |||
299 | 329 | | |
300 | 330 | | |
301 | 331 | | |
302 | | - | |
| 332 | + | |
303 | 333 | | |
304 | 334 | | |
305 | 335 | | |
| |||
311 | 341 | | |
312 | 342 | | |
313 | 343 | | |
314 | | - | |
| 344 | + | |
315 | 345 | | |
316 | 346 | | |
317 | 347 | | |
| |||
323 | 353 | | |
324 | 354 | | |
325 | 355 | | |
326 | | - | |
| 356 | + | |
327 | 357 | | |
328 | 358 | | |
329 | 359 | | |
| |||
335 | 365 | | |
336 | 366 | | |
337 | 367 | | |
338 | | - | |
| 368 | + | |
339 | 369 | | |
340 | 370 | | |
341 | 371 | | |
| |||
347 | 377 | | |
348 | 378 | | |
349 | 379 | | |
350 | | - | |
| 380 | + | |
351 | 381 | | |
352 | 382 | | |
353 | 383 | | |
| |||
359 | 389 | | |
360 | 390 | | |
361 | 391 | | |
362 | | - | |
| 392 | + | |
363 | 393 | | |
364 | 394 | | |
365 | 395 | | |
| |||
374 | 404 | | |
375 | 405 | | |
376 | 406 | | |
377 | | - | |
| 407 | + | |
378 | 408 | | |
379 | 409 | | |
380 | 410 | | |
| |||
386 | 416 | | |
387 | 417 | | |
388 | 418 | | |
389 | | - | |
| 419 | + | |
390 | 420 | | |
391 | 421 | | |
392 | 422 | | |
| |||
398 | 428 | | |
399 | 429 | | |
400 | 430 | | |
401 | | - | |
| 431 | + | |
402 | 432 | | |
403 | 433 | | |
404 | 434 | | |
| |||
410 | 440 | | |
411 | 441 | | |
412 | 442 | | |
413 | | - | |
| 443 | + | |
414 | 444 | | |
415 | 445 | | |
416 | 446 | | |
| |||
422 | 452 | | |
423 | 453 | | |
424 | 454 | | |
425 | | - | |
| 455 | + | |
426 | 456 | | |
427 | 457 | | |
428 | 458 | | |
| |||
434 | 464 | | |
435 | 465 | | |
436 | 466 | | |
437 | | - | |
| 467 | + | |
438 | 468 | | |
439 | 469 | | |
440 | 470 | | |
| |||
446 | 476 | | |
447 | 477 | | |
448 | 478 | | |
449 | | - | |
| 479 | + | |
450 | 480 | | |
451 | 481 | | |
452 | 482 | | |
| |||
458 | 488 | | |
459 | 489 | | |
460 | 490 | | |
461 | | - | |
| 491 | + | |
462 | 492 | | |
463 | 493 | | |
464 | 494 | | |
| |||
470 | 500 | | |
471 | 501 | | |
472 | 502 | | |
473 | | - | |
| 503 | + | |
474 | 504 | | |
475 | 505 | | |
476 | 506 | | |
| |||
Submodule react-navigation updated 77 files
- .yarn/releases/yarn-4.10.3.cjs+942
- .yarn/releases/yarn-4.9.1.cjs-948
- .yarnrc.yml+1-1
- example/App.tsx+3-2
- example/e2e/maestro/auth-flow.yml+1
- example/e2e/maestro/bottom-tabs.yml+1
- example/e2e/maestro/drawer-view.yml+1
- example/e2e/maestro/dynamic-tabs.yml+1
- example/e2e/maestro/full-history-tabs.yml+1
- example/e2e/maestro/link-component.yml+1
- example/e2e/maestro/master-detail.yml+1
- example/e2e/maestro/material-top-tabs.yml+1
- example/e2e/maestro/mixed-header-mode.yml+1
- example/e2e/maestro/mixed-native-stack.yml+1
- example/e2e/maestro/mixed-stack.yml+1
- example/e2e/maestro/modal-stack.yml+1
- example/e2e/maestro/native-stack-header-customization.yml+1
- example/e2e/maestro/native-stack-prevent-remove.yml+1
- example/e2e/maestro/native-stack.yml+1
- example/e2e/maestro/navigator-layout.yml+1
- example/e2e/maestro/screen-layout.yml+1
- example/e2e/maestro/simple-stack.yml+1
- example/e2e/maestro/stack-header-customization.yml+1
- example/e2e/maestro/stack-preload-flow.yml+1
- example/e2e/maestro/stack-prevent-remove.yml+1
- example/e2e/maestro/stack-transparent.yml+1
- example/e2e/maestro/static-screen.yml+1
- example/e2e/maestro/tab-preload-flow.yml+1
- example/e2e/maestro/tab-view.yml+1
- example/e2e/tests/maestro.test.ts+3-1
- example/package.json+28-28
- example/src/Screens/FullHistoryTabs.tsx+5
- example/src/Screens/NativeBottomTabs.native.tsx+67-1
- example/src/Screens/NativeStack.tsx+79
- example/src/assets.d.ts+1
- example/src/index.tsx+3
- jest/setup.js-6
- lefthook.yml+3
- package.json+6-7
- packages/bottom-tabs/CHANGELOG.md+13
- packages/bottom-tabs/package.json+10-10
- packages/bottom-tabs/src/unstable/NativeBottomTabView.native.tsx+10-2
- packages/bottom-tabs/src/unstable/NativeScreen/NativeScreen.tsx+4-36
- packages/bottom-tabs/src/unstable/NativeScreen/types.ts+56
- packages/bottom-tabs/src/unstable/NativeScreen/useHeaderConfig.tsx+15-4
- packages/bottom-tabs/src/unstable/index.tsx+1
- packages/bottom-tabs/src/unstable/types.tsx+22-2
- packages/core/CHANGELOG.md+4
- packages/core/package.json+7-7
- packages/devtools/CHANGELOG.md+4
- packages/devtools/package.json+4-4
- packages/drawer/CHANGELOG.md+4
- packages/drawer/package.json+12-14
- packages/drawer/src/__tests__/index.test.tsx+5
- packages/elements/CHANGELOG.md+4
- packages/elements/package.json+7-8
- packages/material-top-tabs/CHANGELOG.md+8
- packages/material-top-tabs/package.json+11-12
- packages/native-stack/CHANGELOG.md+14
- packages/native-stack/package.json+9-10
- packages/native-stack/src/types.tsx+72
- packages/native-stack/src/views/NativeStackView.native.tsx+73-58
- packages/native-stack/src/views/useHeaderConfigProps.tsx+19-5
- packages/native/CHANGELOG.md+4
- packages/native/package.json+9-9
- packages/react-native-drawer-layout/CHANGELOG.md+4
- packages/react-native-drawer-layout/package.json+7-7
- packages/react-native-drawer-layout/src/views/Drawer.tsx+4-4
- packages/react-native-tab-view/CHANGELOG.md+10
- packages/react-native-tab-view/package.json+8-8
- packages/react-native-tab-view/src/PanResponderAdapter.tsx+1-1
- packages/routers/CHANGELOG.md+4
- packages/routers/package.json+3-3
- packages/stack/CHANGELOG.md+4
- packages/stack/package.json+11-11
- packages/stack/src/__tests__/index.test.tsx+2
- yarn.lock+1.1k-1.2k
0 commit comments