What's Changed
This is the second beta release of react-native-screens 5.0.0. On iOS, a Stack.Host can now navigate a Split.Column, and the modals get two new components: PageSheet and ContainedModalReplacingContent. The release also brings new header customisation options for Stack v5, a series of fixes for Stack, Tabs, FormSheet and Split, and a few breaking renames in the v5 types.
✅ Improvements
- feat(iOS, Split): support native column hiding by @t0maboro in #5124
- feat(iOS, Stack v5): Add button and prominentButton text appearance by @kmichalikk in #4622
- feat(iOS, Stack v5): Add tintColor for buttons by @kmichalikk in #4623
- feat(iOS, Stack v5): Add back button appearance by @kmichalikk in #4624
- feat(Android): update SDK versions in build.gradle to 24 for minimum SDK, and compile and target to 36 by @Loloekk in #5138
- feat(iOS): Support axisBehavior prop on header bar button items by @huntie in #5142
- feat(iOS, Stack v5): own shadow node for RNSStackHost by @t0maboro in #5182
- feat(iOS, Stack v5): stack screen reports the frame UIKit gives it by @t0maboro in #5183
- feat(Stack v4): add letter spacing to header title, large title, back title and bar button items by @maxlapides in #4937
- feat(iOS, PageSheet v5): add standalone
PageSheetcomponent on top of the FormSheet host by @kmichalikk in #5131 - feat(iOS, Split): the navigation controller of a Split column is a stack navigation controller by @t0maboro in #5184
- feat(iOS, Stack v5): headless mode of Stack.Host by @t0maboro in #5214
- refactor(v5): rename the actionOrigin values to camelCase by @Loloekk in #5241
- feat(iOS, Split): Stack.Host navigates a Split column by @t0maboro in #5215
- feat(iOS): add ContainedModalReplacingContent by @kmichalikk in #5088
🐞 Bug fixes
- fix(iOS): tolerate sub-pixel drift in the ContainedModal containment check by @kmichalikk in #5087
- fix(Android, Tabs): notify every SafeAreaView registered on TabsContainer about interface insets by @lassiecoder in #5145
- fix(iOS, FormSheet): reset content wrapper delegate on recycle by @kkafar in #5147
- fix(Android, FormSheet v5): keep a drag that starts on a scrolled list from moving the sheet by @t0maboro in #5116
- fix(iOS, FormSheet): clean up and ignore stale content wrappers by @kkafar in #5153
- fix(Android, Stack v4): don't let an enter animation end a removal transition by @rafalnawojczyk in #5113
- fix(Android, Stack v4): dispatch the appear event after a pause mid push by @chocky335 in #5171
- fix(iOS): follow the gesture in interactive fade and fade_from_bottom pops by @bartlomiejbloniarz in #5146
- fix(Android, Tabs): remove TabsScreen natively when it's removed from JS by @wildan-m in #5074
- fix(Android, FormSheet): include grabber height in fitToContents sheet height by @kmichalikk in #5258
- fix(iOS, Split): a stack rendered in Tabs, a sheet or a contained modal is not integrated with a Split column by @t0maboro in #5282
- fix(iOS, Split): notify every Split column about repositioning by @t0maboro in #5248
- fix(iOS, Split): a column shown after the Split collapses has the size of the collapsed Split by @t0maboro in #5290
- fix(iOS, Stack v4): keep navigation bar after cancelled back-button pop by @kkafar in #5162
- fix(Android, Stack v5): accept a repeated screenKey by @bartlomiejbloniarz in #5269
- fix(iOS, Split): stack screens follow their column when the Split moves it by @t0maboro in #5313
🔢 Misc
- fix(example): Allow undefined for optional SettingsSwitch props by @kmichalikk in #5130
- refactor(iOS, Stack): keep the header icon image source opaque to core by @kkafar in #5039
- refactor(iOS, Stack): move the header menu and icon mappers to react by @kkafar in #5040
- refactor(iOS, Stack): use RNSAssert / RNSLog in the Stack core files by @kkafar in #5041
- refactor(iOS, Stack): move the Stack core half to ios/core/containers/stack by @kkafar in #5042
- refactor(v5): migrate SafeAreaView, ScrollToTopGuard and ScrollViewMarker to the docs conventions by @Loloekk in #5140
- refactor(v5): migrate FormSheet and ContainedModal to the docs conventions by @Loloekk in #5141
- chore: Setup argent triage workflow by @kmichalikk in #5136
- chore: Upgrade RN to 0.89-rc.0 by @t0maboro in #5156
- chore(example): replace react-native-restart with a private RNSAppRestart TurboModule by @t0maboro in #5160
- docs(v5): document the Stack namespace, screen props and animation types (migration 6, part 3) by @Loloekk in #5150
- chore: Post Argent Cloud report comments as the ArgentCloud App by @kmichalikk in #5178
- chore: Post Argent Cloud reports with inline screenshots through the reports App by @kmichalikk in #5199
- chore(example): build Detox from source with a patch for RN 0.89 by @t0maboro in #5180
- refactor(FormSheet v5): extract shared sheet implementation into
modals/sheetby @kmichalikk in #5152 - refactor(v5): migrate Split to the docs conventions by @Loloekk in #5148
- chore: Build Argent Cloud repro apps with Xcode 27 on the xcode-27 runner by @kmichalikk in #5200
- refactor(iOS, Split): a Split column owns its navigation controller by @t0maboro in #5213
- chore(AI): prepare repo for shared skills and agents by @LKuchno in #5013
- chore: Allow Expo Router in Argent Cloud issue repros and pass remote device ids to Argent by @kmichalikk in #5255
- chore(Android): bump standalone library Gradle to 9.4.1, AGP 9.2.1, Spotless 8 by @kmichalikk in #5257
- refactor(v5): migrate the iOS part of Stack.HeaderConfig to the docs conventions by @Loloekk in #5234
- test(PageSheet v5): add fitToContents, iPad layout, presentation state and stacking scenarios by @kmichalikk in #5132
- refactor(Sheet v5): rename the native FormSheet host to Sheet by @kmichalikk in #5185
- refactor(iOS): move RNSPresentationSourceProvider to core/modals by @kmichalikk in #5194
- docs(tests): move scenario metadata to scenario-description and generate it into scenario.md by @LKuchno in #4959
- refactor(v5): migrate the Android part of Stack.HeaderConfig to the docs conventions by @Loloekk in #5235
- refactor(v5): migrate the shared props of Tabs.Host to the docs conventions by @Loloekk in #5236
- refactor(v5): migrate the platform props of Tabs.Host and the bottom accessory to the docs conventions by @Loloekk in #5237
- chore(example): restore the New Architecture probe Detox reads on iOS by @t0maboro in #5260
- refactor(v5): migrate the shared props and icons of Tabs.Screen to the docs conventions by @Loloekk in #5238
- refactor(iOS, Split): remove RNSSplitNavigationController by @t0maboro in #5264
- refactor(v5): migrate the iOS props and appearance types of Tabs.Screen to the docs conventions by @Loloekk in #5239
- refactor(iOS, Split): move RNSNavigationItemCustomizing to the legacy code by @t0maboro in #5247
- refactor(v5): migrate the Android props and appearance types of Tabs.Screen to the docs conventions by @Loloekk in #5240
- docs(v5): add @platform to the fields of public types by @Loloekk in #5286
- refactor(v5): use family aliases for common types by @Loloekk in #5287
- refactor(v5): declare union values once by @Loloekk in #5288
- refactor(iOS, Split): the content of a plain Split column is a stack screen by @t0maboro in #5276
- refactor(iOS, Split): rename RNSSplitScreenController to RNSSplitColumnCoordinator by @t0maboro in #5277
- test(iOS, Split): move the Split and Stack scenarios to the integration tests by @t0maboro in #5293
- docs(v5): unify @DefaultValue tags by @Loloekk in #5295
- chore: aggregate dependabot updates by @kkafar in #5223
- refactor(v5): remove unused sheet background effect aliases by @Loloekk in #5301
- refactor(v5): give
ContainedModalOverContentandContainedModalReplacingContenttheir own props types by @kmichalikk in #5321
New Contributors
- @lassiecoder made their first contribution in #5145
- @rafalnawojczyk made their first contribution in #5113
- @huntie made their first contribution in #5142
- @maxlapides made their first contribution in #4937
- @chocky335 made their first contribution in #5171
- @wildan-m made their first contribution in #5074
Full Changelog: 5.0.0-beta.1...5.0.0-beta.2