reitit

gtbono 2024-11-19T01:03:13.087069Z

Is reitit frontend compatible with react-native?

juhoteperi 2024-11-19T08:25:56.134939Z

Depends on how you define compatible. You should be able to use the code fine on RN. Does it do something useful in RN? Not really. RN apps don't really do URI/path routing so Reitit isn't useful. RN navigation solutions deal a lot more with Views/Activities and having a "stack" of those on top of each other, so you can implement open/close view transitions etc. easily. The use cases are very different to web routing. https://reactnavigation.org/docs/hello-react-navigation https://wix.github.io/react-native-navigation/docs/basic-navigation

juhoteperi 2024-11-19T08:28:48.999609Z

Regular React-router does work on RN though. They just give some route path to the each views etc. and their component based routing is likely much easier to map into RN views. https://reactrouter.com/en/main/router-components/native-router