React Native Url Router aims to simplify native navigation patterns.
It allows for native navigation UI that feels natural on mobile together with easy navigation by opening URLs.
It exports Stack and Tab Navigators same as react-navigation, but they are usually closely mapped with an app-wide URL structure.
Being designed to work seamlessly with react-router and it should feel immidiately intuitive to people who used react-router on web.
React Router provides the routing logic, route ranking, matching, params support and more.
React Native Url Router provides a powerful new abstraction over a regular web history stack. It also integrates with react-native-screens providing a fully native stack behavior, and relies on react-native-pager-view for swipeable Tabs.
This project is so cool! Can we have something ike router level prefetch to embrace the React 18, like loading data outside React's life cycle and in parallel with the route loading
You should take a look at my Navigation router because it solves the problems you’re working on. It’s a single API that works on Android, iOS and the Web. It’s 100% native so it uses Fragments on Android, UINavigationController on iOS and browser history on the web.
You can see it in action in this Twitter example. It’s a single codebase that runs on all three platforms. What’s more, on the web all the navigation is via Hyperlinks.
Even on native all navigation is via URLs under the covers. But there’s no hard-coded URLs because you navigate using the name of the scene and passing strongly-typed data. Let me know if you’re interested and I can tell you more about it.
opened by grahammendick 1
Owner
Software Mansion – Labs
Our experimental projects are hosted here. For our officially maintained libraries visit https://github.com/software-mansion.