Navigation überspringen
The latest version of React Navigation now has a new unstable API to automatically navigate to the…
0:00 / 0:23

The latest version of React Navigation now has a new unstable API to automatically navigate to the…

React Navigation

@reactnavigation11.104 Follower

Auf X besuchen

30.890 Aufrufe

The latest version of React Navigation now has a new unstable API to automatically navigate to the correct screen after a conditional render (e.g., if a screen was opened via a deep link, but was behind auth) Just pass `UNSTABLE_routeNamesChangeBehavior="lastUnhandled"`

15 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Daniel Williams

    @Danny_H_W

    need this 😄

    3 Likes

  • Profilbild von Matt Zatorski

    @matzatorski

    huge!

    2 Likes

  • Profilbild von React Navigation

    @reactnavigation

    Documentation is available here

    1 Like

  • Profilbild von nnft

    @nnft17

    Nice! Are we getting this with expo router too? @expo @Baconbrix

    1 Like

  • Profilbild von Chris Gabba

    @The__gabbanator

    Is there a specific version this is available on? I'm getting a typescript error on the latest native-stack

  • Profilbild von React Navigation

    @reactnavigation

    Make sure to also update @react-navigation/native

  • Profilbild von Kayode

    @kayzmann1

    interesting

  • Profilbild von Koura 💻

    @kouradev

    @Baconbrix expo-router?

  • Profilbild von Devika Kale

    @kale_devika

    can you use this with 0.79?

  • Profilbild von React Navigation

    @reactnavigation

    Yes

  • Profilbild von Ilia Gazdaliev

    @IGazdaliev

    Looking great! Although It would be really helpful if the team could also look into the outstanding performance issues when upgrading to React Navigation 7.x with the new React Native arch. Without it adoption of this fine new features are unlikely.

  • Profilbild von React Navigation

    @reactnavigation

    There is no repro, comparison video, or any information to know what exactly is slow. Without such info, how do we verify where the bug is or whether any changes will actually fix your issue?

  • Profilbild von Ilia Gazdaliev

    @IGazdaliev

    I am not the author of the issue, but I do face it. In this specific case given the number of people affected and also the straightforward nature of reproduction: comparing prod 6.x to 7.x with new arch. enabled people might think it is redundant. I can create new issue with repr

  • Profilbild von React Navigation

    @reactnavigation

    We always ask for repro and tell you why. Repro, videos, etc., minimize miscommunication and help pinpoint what to debug and where the issue is. If it's straightforward to repro, it should be easy to provide a repro as well.

  • Profilbild von React Navigation

    @reactnavigation

    In the end, maintainers have many other things to do. If you don't make it easy for the maintainers to look at an issue you have, it's simply not going to be prioritized. People should also help out with the work in Open Source projects. Providing a clear repro is part of it.

    1 Like