News for hackers. Stuff that matters.
Re:Solito – React Native and Next.js unified by hunterb123 on Monday March 14, 2022 @05:43PM (#30678783)
Wouldn't Remix be a better fit? It's easier to run in more client-orientated environments.

Currently, I like to have the API and web pages (signup, marketing, policies, etc.) made with Remix.

Then, the cross-platform app (native & web) can be made with React Native / React Native Web using React Navigation as the router.

I can certainly see being able to combine those two into one as a plus, but React Router / Next Router and React Navigation conflict. React Navigation is needed for a nice app experience.

Re:Solito – React Native and Next.js unified by fernandorojo on Monday March 14, 2022 @07:38PM (#30679968)
Someone has brought up adding a Remix integration to Solito, too. It's certainly possible from my end, the question is if Remix would make it possible. Many remix APIs like Form seem to be very browser-specific, so it wouldn't share nicely with React Native.

That said, I opened this discussion on the Remix repo a while ago: https://github.com/remix-run/remix/discussions/1578

If you're using shared screens outside of Remix marketing pages, though, then I imagine a solito/remix could exist to bring the same features the Next integration has to a Remix one.

Re:Solito – React Native and Next.js unified by hunterb123 on Monday March 14, 2022 @11:09PM (#30681276)
Understandable with web specific apis like form. My main wish is a React Navigation and Remix adaptation to bridge native to full web.
Re:Solito – React Native and Next.js unified by kall on Monday March 14, 2022 @06:03PM (#30679027)
Doesn't remix very much want to handle the routing? Homestead you mashing that with react-navigation?
Re:Solito – React Native and Next.js unified by hunterb123 on Monday March 14, 2022 @06:06PM (#30679049)
As does Next.js, does it not? Solito uses next/router. I updated my comment to reflect this dilemma.

This is why I currently separate web pages & API from the cross-platform native/web app.

Adapting Remix to React Navigation would be the solution if possible.

Re:Solito – React Native and Next.js unified by kall on Monday March 14, 2022 @06:14PM (#30679138)
Sure and that's what this library bridges. I see the appeal in remix for building interactive apps the "remix way" with forms, relying on web/http conventions etc. I also like that it brings nested routing back to metaframeworks. None of that will translate well to native. As an api+website framework it doesn't look more appealing then next.js to me, which is a little more unopinionated and thus easier to adapt to cross-platform.
Re:Solito – React Native and Next.js unified by hunterb123 on Monday March 14, 2022 @07:55PM (#30680060)
I guess my point was this library bridges next router similar to how it could bridge react router with Remix. Neither are a great native experience that React Navigation provides.