Learn Expo Router - Complete Tutorial

Join The Discord! → discord.cosdensolutions.io
Source Code → github.com/cosdensolutions/co...
VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"
In this video we will learn about Expo Router in React Native. Expo Router is a file-based routing solution for React Native that's built on top of React Navigation. It provides an easy way to handle routes in your React Native applications and offers a wide range of features such as Stack Navigators, Bottom Tabs Navigators, and so much more!

Пікірлер: 130

  • @cosdensolutions
    @cosdensolutions2 ай бұрын

    Hey everyone! I just launched 🚀 Project React, which is a course that teaches you React by building a real-world project. It goes way beyond what you see in these videos and walks you through step-by-step on how to build a big and complex application with React! You can check it out here: cosden.solutions/project-react

  • @matkomilic8382
    @matkomilic83825 күн бұрын

    Went from React Navigation to Expo Router today and this tutorial totally got me going, thanks!

  • @ROVAKAN
    @ROVAKAN5 ай бұрын

    i zapped almost 50 tutorial videos on youtube. And this is the video that i need. It's like an answer from a friend. Straight to the point.

  • @cosdensolutions

    @cosdensolutions

    5 ай бұрын

    glad you found it useful!

  • @Yaw_Dev

    @Yaw_Dev

    Ай бұрын

    I totally agree. Same here. I'm like finally someone simply explained what the heck is going on. I like how he goes straight to the point. That's how you get Fellow, Like, Save and all the above. Cosden, thanks for making this video.

  • @serdar.d

    @serdar.d

    15 күн бұрын

    SAME!

  • @ROVAKAN

    @ROVAKAN

    15 күн бұрын

    @@serdar.d kolay gelsin kanka :)

  • @serdar.d

    @serdar.d

    15 күн бұрын

    @@ROVAKAN 😄😄 eyvallah hocam sana da

  • @serdar.d
    @serdar.d15 күн бұрын

    This is the simplest and the smoothest explanation of the Expo Router. Thank you 🙏🏼

  • @Lykkos29
    @Lykkos296 ай бұрын

    Thanks for this!, I will check it later, just letting you know your explanation and code snippets are super understandable 💯🤙

  • @czuka1520
    @czuka15205 ай бұрын

    This is my ultimate Expo Router tutorial! Thanks so much for making this!

  • @Noone-bb5qh
    @Noone-bb5qh5 ай бұрын

    Thank you so much brother for this video. You made me understand the navigation so easily, which other blogs made so hard to understand. Thank you!

  • @prashlovessamosa
    @prashlovessamosa6 ай бұрын

    Can you please make more react native stuff please.

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Yes will do ☺️

  • @GolderiQ

    @GolderiQ

    2 ай бұрын

    @@cosdensolutionsit’s been for months 🥲 Do you use Apple silicon? How well does it all work with Expo, React native, etc..?

  • @nitsanbh
    @nitsanbh5 ай бұрын

    Folder-based routing is a GAME CHANGER

  • @Smongo412
    @Smongo412Ай бұрын

    Long time react native dev here. 1. When things work, be thankful, but skeptical. 2. When things don't work, turn off and on again

  • @JohnWick-hp8wn

    @JohnWick-hp8wn

    Ай бұрын

    Could you please help me 👀 I am getting "cannot read property 'useMemo' of null error and app doesn't work (although before changing the package.json, it was working!)

  • @Smongo412

    @Smongo412

    Ай бұрын

    @@JohnWick-hp8wn do you use git? Can you go back to before you made the change? Did you remove some package and run npm install? It means you are calling useMemo on something that is null.

  • @deepmistry3114
    @deepmistry31142 ай бұрын

    Crystal clear description. Thanks a lot!

  • @emmanueloni2147
    @emmanueloni21475 ай бұрын

    Thank you for this. It was really explanatory and simple to learn, now the docs makes sense 😁. Weldone 👍👍

  • @jijieats
    @jijieats6 ай бұрын

    Loved this tutorial! I would really love more react native tutorials! Keep it up

  • @_SABARIVASANS-cy7qw
    @_SABARIVASANS-cy7qw2 ай бұрын

    This video was really helpful and gave me a better understanding of the router. Thanks and keep making good content

  • @LewraAzad
    @LewraAzad3 ай бұрын

    Thanks for the tut and love the way you say router!!

  • @felipecabreira4321
    @felipecabreira43216 ай бұрын

    Love your videos man ! Great tutorial

  • @nehat786
    @nehat7866 ай бұрын

    Sir we badly expect a react native from you. The way you explain is awesome.

  • @joaquinrodriguez7100
    @joaquinrodriguez71002 ай бұрын

    Nice tutorial, it was really clear to me. Thank you!

  • @ronallan8680
    @ronallan86805 ай бұрын

    Hey that was Great dude! Really clear and succinct. Thnams!

  • @e-jahman
    @e-jahman2 ай бұрын

    Started building out mobile apps from my day 2 of learning react native. What gave me the advantage was my grounded know how of reactjs. Seeing this video just gives me the knowledge I need to handle navigations with expo

  • @bugrakaraaslan8556
    @bugrakaraaslan85563 ай бұрын

    exactly what I was looking for, Thanks!

  • @abubokor6853
    @abubokor6853Ай бұрын

    This is the what i actually need. Thank You SIr.

  • @FriendsExplanation
    @FriendsExplanationАй бұрын

    You just made my day 🌼. Thank for the video. It is helping junior developers like me.

  • @MrAlao675
    @MrAlao6756 ай бұрын

    This is awesome ❤. For a user of nextjs... You covered the whole React Native in less than 25 minutes. I have to save this for later.

  • @SamtheSWE
    @SamtheSWEАй бұрын

    Thank you so much for this video!

  • @mariusbora4470
    @mariusbora44704 ай бұрын

    very good and useful info, thank you for making this tutorial!

  • @yassinekader8308
    @yassinekader83082 ай бұрын

    thanks man you helped me a lot :)

  • @DatDat59
    @DatDat596 ай бұрын

    I follow you because I know more react native than react js, this is so cool to see a react native video !

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Will do more of them ☺️ I'm also a rn dev

  • @freeinformation7877
    @freeinformation78773 ай бұрын

    Thank you so much, I really appreciate it.

  • @DorgadoPlays1
    @DorgadoPlays13 ай бұрын

    Thank you very much bro! helped me to resolve a problem in my App

  • @danielflorencio9661
    @danielflorencio96616 ай бұрын

    More React Native and Expo, please! 👀

  • @nfaical3
    @nfaical36 ай бұрын

    Thanks 👍, hope you make more tutorials.

  • @gaddp
    @gaddp2 ай бұрын

    super helpful. thanks!!

  • @rukacruxer1474
    @rukacruxer14743 ай бұрын

    best tutorial on expo router 👏

  • @dickydarmawan4790
    @dickydarmawan47906 ай бұрын

    Thanks for the tutorial👍.

  • @culturapoliticaycomputador9999
    @culturapoliticaycomputador99994 ай бұрын

    Thanks for this useful video.👍

  • @saqibmuhammad7218
    @saqibmuhammad72186 ай бұрын

    Video mean alot for me. ❤

  • @h.t.8812
    @h.t.88123 ай бұрын

    really good video!

  • @SomeRandom3DArtist
    @SomeRandom3DArtist3 ай бұрын

    Great video👍

  • @ahmadrami14
    @ahmadrami143 ай бұрын

    Thanks for the Tutorial

  • @martrom0
    @martrom02 ай бұрын

    Thanks man !!

  • @brawnie3969
    @brawnie39699 күн бұрын

    thanks for the video.

  • @spare4337
    @spare43374 ай бұрын

    The simplest one thanks

  • @user-pk4ni3tv7l
    @user-pk4ni3tv7l4 ай бұрын

    you the Goat

  • @kratos-oi7sz
    @kratos-oi7sz6 ай бұрын

    A video on how to setup a turborepo with expo and nextjs please 🤞🤞

  • @yucanli2957
    @yucanli29572 ай бұрын

    amazing tutorial! Wondering would you like to share some of your extension used in vsc? I found the autofill function is very useful!

  • @cosdensolutions

    @cosdensolutions

    2 ай бұрын

    have a whole vid on my vscode setup

  • @amralimohamed6497
    @amralimohamed64976 ай бұрын

    A like even before i watch the video😊

  • @uhN0id
    @uhN0idАй бұрын

    Just a heads up, if you're on Expo SDK 50 or higher you no longer need to make the babel config change. It's all merged into the existing babel-preset-expo.

  • @renekutter7562
    @renekutter75626 ай бұрын

    Hey, good tutorial, but I would have liked a little more on the topic of nesting. I keep trying to create a tab navigation where a screen contains a stack navigation. However, the stack navigation menu items should not be displayed in the tab navigation. In the navigation tab there should be a “Settings” tab in which several menu items are displayed. I would be super grateful if you could explain this briefly, because I can't find anything about it on the internet.

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Yeah I totally get it, but this was meant to be a beginner tutorial to teach the basics. However, it shouldn't be too difficult to have a stack of screens as one of the tabs. Try replacing in my example code the home screen with a stack and give it 2 screens and see how it behaves. I'm 100% sure you can figure it out without too much trouble :D

  • @MJ-vx5cz
    @MJ-vx5cz6 ай бұрын

    Please make more advanced react native videos

  • @rolloooo
    @rolloooo2 ай бұрын

    Hey man, is there a way to have two sets of tabs and screens to be swapped via Firebase authentication. Like if user is authenticated, it would swap to a different set of tabs. Great tutorial btw! Cleared out many things for me

  • @emeryd7432
    @emeryd7432Ай бұрын

    Thanks a loooooooooooooooooooooooooooooooooooooooooooooot !

  • @budiman-kr5ug
    @budiman-kr5ug4 ай бұрын

    16:33 get overrided or nested (parent layout still exists and wrapping the child layout)?

  • @lukemontana9792
    @lukemontana97922 ай бұрын

    great

  • @harag9
    @harag96 ай бұрын

    Great video thanks for this. What keyboard did you get?

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Ergodox EZ

  • @VirtualVibesMusic
    @VirtualVibesMusic2 ай бұрын

    👍👍👍👍👍👍👍👍👍👍👍👍👍👍 great stuff

  • @BukkyOdunsi
    @BukkyOdunsi5 ай бұрын

    too good

  • @Juju-ch5it
    @Juju-ch5it18 күн бұрын

    Is it possible to have a LEFT & RIGHT drawer nav on one screen using expo router? I haven't seen anyone make a video on that yet

  • @msrajawat298
    @msrajawat298Ай бұрын

    I am working on expo router trying to develop android application. During development I Observe that if I am creating any new file it is showing in menu, like if I am using tab navigation using expo router and created a new file which is showing as menu in bottom tab. Similarly in drawer menu also. Can anyone help me how I can fix that issue ? However maybe it is default behaviour of expo router but I don't want to show each file in menu.

  • @dogdev
    @dogdev22 күн бұрын

    There are about 100 Stack.Screens in the file in layout.tsx, can I keep them or how can I split them?

  • @amahdavid3476
    @amahdavid3476Ай бұрын

    I'm having an issue where i am trying to navigate between my onboarding, login and signup screen, when I reach the last view and try to navigate back, my ios simulator crashes but the code builds fine

  • @h.t.8812
    @h.t.88123 ай бұрын

    just one question, does anyone know of a list for TabBarIcons we can use? I tried using from a general react native list and it didn't work

  • @syeedimtiaz2974
    @syeedimtiaz297411 күн бұрын

    Please complete the playlist !

  • @paysnug4470
    @paysnug44706 ай бұрын

    the page inside tab.screen background is not showing something overlay it

  • @SuperPlex99339
    @SuperPlex993392 ай бұрын

    When I use the expo router I am unable to make the status bar translucent. It always shows.

  • @HMS_55
    @HMS_554 ай бұрын

    🙌🙌🙌

  • @abelmurua6980
    @abelmurua69804 ай бұрын

    Amazing! i just started with react native 2 days ago. This is great. How do you get the preditect text (when typing) ? its like telling you whats coming next.. whats the extension?

  • @cosdensolutions

    @cosdensolutions

    4 ай бұрын

    github copilot :D

  • @abelmurua6980

    @abelmurua6980

    4 ай бұрын

    How much do you recommend it? lol github copilot vs chatgpt? @@cosdensolutions

  • @cosdensolutions

    @cosdensolutions

    4 ай бұрын

    I use it quite a lot, so I would recommend it. They're both the same but copilot runs in your vscode which makes it way more convenient

  • @yourgflikesit
    @yourgflikesit4 ай бұрын

    Why did you move the users folder into the (tabs) folder? Was that required?

  • @cosdensolutions

    @cosdensolutions

    4 ай бұрын

    because I wanted it to be a whole tab, so everything within it is its own stack

  • @greenshaheen6716
    @greenshaheen67166 ай бұрын

    how can i use it in react-native expo bare project?

  • @PetersExcapades
    @PetersExcapades5 ай бұрын

    I keep getting TypeError: Cannot read property 'isReady' of undefined, js engine: hermes and have no idea why, anyone know?

  • @shaz101
    @shaz1012 ай бұрын

    I used the "npx create-expo-app@latest --template tabs@50" recommended by expo and got completely screwed but this tutorial explained everything SO WELL! THANK YOU!!!

  • @vyankateshmiskin9618
    @vyankateshmiskin96186 ай бұрын

    'cannot GET /URL' error on refresh with React Router how to fix this?

  • @atnguyenucchi9776
    @atnguyenucchi97764 ай бұрын

    i think this work on simple way, i have try app -> (tabs) -> (drawer). So when I in drawer I cant navigate to screen in app

  • @nikhilnagar3253
    @nikhilnagar32535 ай бұрын

    liked it

  • @saim4556
    @saim455622 күн бұрын

    well you can use rnfe instead of rjsfc

  • @maddyIncubus
    @maddyIncubus6 ай бұрын

    Dude a little confused about (tabs). You say it will not appear in url but it can be used as a name in stack screens ? Could please elaborate on this ? I mean where does it break and how to probably redirect to one of the tabs directly(not the default one) from say an auth page

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Think of it as a simple folder to organise routes in. It won't show up in the URL, but it's helpful to group related routes in the same folder. Think of a "loggedIn" group and a "loggedOut" group with different screens for each. You wouldn't want "loggedIn" to show up in the url, but you would appreciate having all of the logged in routes in a separate folder than the logged out ones, so it's more organised. What might be slightly confusing is that to navigate to a logged in route, you'd have to pass it to the href tag like so: "loggedIn/home". But in the URL it would show up as "/home". Again, it's just to organise things and you use it to point to the route, but expo router just doesn't show it in the url so your urls are clean

  • @maddyIncubus

    @maddyIncubus

    6 ай бұрын

    @@cosdensolutions Just a follow up question 1) When u say url u mean it as a deeplink url or in web the browser url ? 2) From the above example does this mean loggedIn and loggedOut techinically should not have the same file names ? would work for internal routing but not using external urls right ? Note: Going to stop with this question :)

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Url in the sense that when checking for matches to figure out which screen to render, the part in () is ignored. So that's the answer to both of your questions. If the pages have the same name, they'll both be matched on a url "/pageName". If they're in "loggedIn/pageName" or "loggedOut/pageName". You should check out the docs for grouping, it explains this really well!

  • @maddyIncubus

    @maddyIncubus

    6 ай бұрын

    @@cosdensolutions thanks a ton man! appreciate the quick response

  • @2gbeh
    @2gbeh5 ай бұрын

    WOW

  • @abelmurua6980
    @abelmurua69804 ай бұрын

    Can you make a video of nesting tabs? Let say Home page has 4 TABS, but if you go inside one of those TABS (e.f. "Settings"), then those TABS get replaced but always have the HOME tab in order to go back. Cant find information on this type of structure. Imagine a react native app could have 50 screens? any tips? Thank you

  • @cosdensolutions

    @cosdensolutions

    4 ай бұрын

    Well, I kinda did that by having the bottom tabs inside the index route. You can nest navigators inside other navigators. Have a look at the expo docs they have a page on that

  • @abelmurua6980

    @abelmurua6980

    4 ай бұрын

    Mmm I dont see any implementation on nested tabs. Yes I have checked documentation but its not hekllping much. I was able to get tabs within tabs but I get duplicate bottom "TABS" I cant get rid of main parent set of tabs so far @@cosdensolutions

  • @cosdensolutions

    @cosdensolutions

    4 ай бұрын

    aha, right. I have never had to use nested tabs, but it sounds like maybe they shouldn't be nested but rather next to each other, and you navigate between them as you would normally

  • @abelmurua6980

    @abelmurua6980

    4 ай бұрын

    Maybe "nested" is not the right word. What I wanted to achieve is to have different tabs (icons /text) depending on the section of your web app. Let say you have a car & house e-commerce app. If you go to the car section you may see "buy a car", "sell a car" and "find a car" (3 tabs) but if you go to the house section you may see "buy a house", "sell a house", "rent a house", "repair a house" (4 tabs) do you this is possible or I'm using the tabs the wrong way?@@cosdensolutions

  • @yahyeabdullahinuur5247
    @yahyeabdullahinuur52476 ай бұрын

    Please make video of typescript with react i'm eager to use permanently typescript instead of javascript in my react code

  • @50kT
    @50kT2 ай бұрын

    Problem with tabs is it seems to take away the animation too

  • @benjaminkissa9100
    @benjaminkissa91004 ай бұрын

    can do a toturial to change it to apk file for android

  • @mishen-thakshana
    @mishen-thakshana5 ай бұрын

    How did you instantly change ' ' to `` when putting ${}

  • @cosdensolutions

    @cosdensolutions

    5 ай бұрын

    I have an extension for that :D check out my vscode vid

  • @AllahomAnsorGaza
    @AllahomAnsorGaza14 күн бұрын

    LOL its now NextJS style :D

  • @hubesh716
    @hubesh7166 ай бұрын

    please start react native projects or Tutorial

  • @abhinavdhama3014
    @abhinavdhama30146 ай бұрын

    Is it only for native?

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    Yep

  • @imnash21
    @imnash216 ай бұрын

    You forgot how to position the tab container to the top like the FB app.

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    😅

  • @mma-dost
    @mma-dost2 ай бұрын

    Please bring a react native project

  • @PriyankBolia
    @PriyankBolia3 ай бұрын

    Never like react-native, Ionic is much better and in React if I have to go page structure, what's wrong with next.js then?

  • @RaushanKumar-fn6ks
    @RaushanKumar-fn6ksАй бұрын

    please make web compatible also

  • @ManKidCS
    @ManKidCS5 ай бұрын

    Router != Rooter | Reuter

  • @yoanhg421
    @yoanhg4214 ай бұрын

    It's not buggy. You can't just drag a file to a different folder and not restart the build. if you had copied the files or created new ones then that would not have happened.

  • @nested9301
    @nested93016 ай бұрын

    rawter not roter

  • @cosdensolutions

    @cosdensolutions

    6 ай бұрын

    potato potahto

  • @prashlovessamosa

    @prashlovessamosa

    6 ай бұрын

    @@cosdensolutions 🤣

  • @tmgj
    @tmgj5 ай бұрын

    Might have been really good content... all I could hear was pounding on the keyboard.

  • @cosdensolutions

    @cosdensolutions

    5 ай бұрын

    lool, it's fixed now

  • @abboudwow
    @abboudwowАй бұрын

    I didn't understand anything

  • @smalls5001

    @smalls5001

    21 күн бұрын

    same 😔

  • @lucdina5118
    @lucdina51182 ай бұрын

    The problem I have with expo router is for ex I wanted to stay on index page and navigating through the details page but the issue is, expo creates automatically a new item on bottom tabs and I don’t really want this behavior.