npm react-native-screens 4.31.0

50 minutes ago

What's changed

Minor release bringing support for SPM and react-native 0.89 plus series of nice new features!

👉🏻 Min. supported React Native version bumped to 0.86
👉🏻 Ability to turn off animation between tabs on iOS
👉🏻 Better integration of SplitView with Stack v4
👉🏻 Imperative API for detent selection for form sheets
👉🏻 Quite few more 👇🏻

✅ Improvements

  • feat(iOS, Tabs): add animation prop so a tab switch can skip the system cross-fade (#5354)
  • feat(Stack v4): add letter spacing to header title, large title, back title and bar button items (#4937)
  • feat(iOS): Support axisBehavior prop on header bar button items (#5142)
  • feat(iOS, Split): support native column hiding (#5124)
  • feat(iOS, Stack v4): add safeAreaAdjustment prop to control safe area adjustment when the navigation bar minimizes on iOS 27 (#4732)
  • feat(SplitView, iOS): Add RNSNavigationItemCustomizerProtocol (#5080) (#5096)
  • feat(SplitView, iOS): enable large titles by default for column navigation bars (#5081) (#5097)
  • feat(Stack v4): Add selectDetent command for form sheets (#4794)
  • feat(iOS): add support for SPM (#5413)
  • feat(iOS, Stack v4): add minimizationBehavior and restorationBehavior to control when the navigation bar minimizes and restores on scroll in Stack v4 (#4729)
  • feat(iOS, Stack v4): add sheetBackgroundEffect prop for form sheets (#5007)
  • feat(release-tests): prepare setup script for automated app builds (#4474)

🐞 Bugfixes

  • fix(release-tests): make create_playground work out of the box on v4
  • fix(Android): load native libraries with SoLoader (#5343)
  • fix(Android, Stack v4): keep a popped screen's content during its exit animation (#5267)
  • fix(iOS, Stack v4): hide the toolbar when recycling a stack (#5320)
  • fix(iOS, Stack v4): keep navigation bar after cancelled back-button pop (#5162)
  • fix(Android, Tabs): remove TabsScreen natively when it's removed from JS (#5074)
  • fix(iOS): follow the gesture in interactive fade and fade_from_bottom pops (#5146)
  • fix(Android, Stack v4): dispatch the appear event after a pause mid push (#5171)
  • fix(Android, Stack v4): don't let an enter animation end a removal transition (#5113)
  • fix(iOS, FormSheet): clean up and ignore stale content wrappers (#5153)
  • fix(iOS, FormSheet): reset content wrapper delegate on recycle (#5147)
  • fix(Android, Tabs): notify every SafeAreaView registered on TabsContainer about interface insets (#5145)
  • fix(Android, Stack v4): don't drag form sheet after list scrolls to top (#5100)
  • fix(iOS, Stack v4): restore navigation bar alpha after a cancelled zoom dismissal (#5055) (#5095)
  • fix(iOS, Tabs): Set the UISearchTab title at creation (#5057) (#5094)
  • fix(iOS, Tabs): size the tab bar controller's view before attaching it (#4990) (#5093)
  • fix(iOS, Tabs): filter UIKit's didSelectTab: for programmatic selection while More is active (#4890) (#4892)
  • fix(iOS, Tabs): apply async-loaded icons to tabs that overflow into More on the UITab path (#4889) (#4891)
  • fix(e2e): Patch backported e2e (#4886)
  • fix(Android, FormSheet v4): hide dimming view from accessibility services (#4933)
  • fix(Android, Stack v4): keep fitToContents form sheet in place when its content height changes mid resize animation (#5005)
  • fix(Android, Stack v4): observe window insets from a view we own instead of the decor view listener slot (#5008)
  • fix(iOS, SPM): let packages that depend on RNScreens import its headers (#5428)
  • fix(iOS, Stack v4): iterate over a copy of reactSubviews when updating header shadow state (#4851)
  • fix(web): keep Screen style when enabled is false (#4917)
  • fix: Correct example after backporting (#5099)

Misc

  • chore(Android): bump standalone library Gradle to 9.4.1, AGP 9.2.1, Spotless 8 (#5257) (#5414)
  • chore(CI, iOS): build FabricExample with SPM in the iOS build job (#5419)
  • chore(example): build Detox from source with a patch for RN 0.89 (#5180) (#5416)
  • chore(example): replace react-native-restart with a private RNSAppRestart TurboModule (#5160) (#5418)
  • chore(example): restore the New Architecture probe Detox reads on iOS (#5260) (#5417)
  • chore: add support for react-native@0.89.0-rc.0 (#5415)
  • chore: bump version to 4.31.0 (#5465)
  • docs: bump minimal supported RN version to 0.86 (#5433) (#5434)

Don't miss a new react-native-screens release

NewReleases is sending notifications on new releases.