Comments (9)
Added docs for useRouter
here: https://solito.vercel.app/usage/use-router
from solito.
yes you can do the same with both, but solito is all about sharing the mental model across platforms. the key thing is that with solito, every navigation action is triggered via URL. this is much better, since it lets your linking config become your source of truth, rather than confusing route names in nested navigators.
from solito.
I'm using this lib myself now, so it's just a matter of finishing docs and examples. The code is stable to use in my experience. So I'd recommend checking out the docs so far (currently a WIP) and seeing if that's sufficient for you to get what's going on.
If not, I can't say definitively. Just depends on when I have time in the next few weeks to add docs/examples. But I'd also accept PRs for that!
If you want more context on how I arrived at this API, I recommend checking out this thread, I went in deep detail: axeldelafosse/expo-next-monorepo-example#1
from solito.
it's the same as next router: https://nextjs.org/docs/api-reference/next/router#routerpush
just use the pathname
and query
object for params. solito stringifies it into a URL for you.
from solito.
I'm trying to understand exactly the differences between solito
and expo-next-react-navigation
.
I can see the API is a little different and solito
seems a little simpler. I have already tested expo-next-react-navigation
and I'm going to give it a try to test the new API, but if you can give me a gist of the core differences I appreciate.
The main question is: "Can I do the same things with both?"
from solito.
solito is essentially a major version bump, since the API has breaking changes
from solito.
@nandorojo I'm trying to figure it out how to send params though router.push()
. Do I need to parse before and generate the string before using in push
method?
from solito.
I still need to add docs for that
from solito.
Thank you fo been so fast! I'm gonna start to convert the code today (probably). So anyway thankyou for helping the community and been so patient.
from solito.
Related Issues (20)
- create-tamagui with App Router throws error NextRouter was not mounted HOT 5
- solito/navigation has no exported member useLink HOT 1
- yarn native error in minimal setup HOT 6
- import error with stripe-react-native HOT 2
- Does solito work with React Native for Mac OS? HOT 3
- Is there a way to animate SVG fill color with Moti? HOT 3
- Unable to run yarn native from tailwind template HOT 2
- Custom Fonts with Solito HOT 18
- Starters eas build process fails for Android
- Bare react-native HOT 1
- suppose i wnat to use any third party library like @expo/react-native-vector-icon or any other library , can anyone plz suggest stpes to include that library and its required loader too
- tailwind intellisense inside the tailwind tempalte HOT 4
- docs: Sidebar not opening in mobile browser HOT 2
- Starter repo web project does not start
- Starter template doesn't start in iOS HOT 6
- iOS Simulator: Unable to resolve module expo-image from .../node_modules/solito/build/image/expo/image.js HOT 7
- Type Warning on SolitoImage HOT 24
- Prettier is not correctly configured in updated tailwind/expo v2 monorepo HOT 5
- using require() string literal not working with expo HOT 8
- Error Running React Native Skia in Solito Repo: Can't Resolve 'react-native-reanimated/package.json' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solito.