Slide In Drawer Navigation in React Native

Поделиться
HTML-код
  • Опубликовано: 4 окт 2019
  • Need One on One Coaching? 20% OFF NOW!
    1 Hour - tinyurl.com/DC1HRCoach
    2 Hours - tinyurl.com/DC2HRCoach
    4 Hours - tinyurl.com/DC4HRCoach
    💥 Check out this awesome animated like button!
    / animated-like-62750436
    💥 Save TIME with a custom TEXT component!
    / custom-reusable-47843654
    Check out the updated social app! • Updating SOCIAL APP wi...
    Get notified about my upcoming Instagram clone course! www.instaclone.app - Let's create a simple but beautiful slide-in drawer navigation for React Native! We will be using the react-navigation package to quickly accomplish this.
    If you enjoyed this video please consider supporting me on Patreon! / designintocode
    💾Source Code
    bit.ly/36RbzAD
    ❤️ Subscribe for awesome videos! bit.ly/2KZU1ds
    ✅SwiftUI Videos!
    • SwiftUI ANIMATED Float...
    ✅Building a React Native + Firebase Social App
    • React Native + Firebas...
    ✅Taking Designs and Turning them Into Code
    • Music Player screen UI...
    ✅Awesome React Native Videos!
    • React Native LOGIN SCR...
    Follow me!
    Twitter: bit.ly/2MdnXBX
    Software Used:
    VSCode, React Native, Expo
    #reactnative #reactnavigation #reactdrawer
  • НаукаНаука

Комментарии • 118

  • @DesignIntoCode
    @DesignIntoCode  4 года назад +4

    I have a course coming out on building an Instagram clone from scratch using React Native & Firebase, make sure you sign up to get discounts, release date info and sample chapters! www.instaclone.app

    • @user-we4bh8ie1w
      @user-we4bh8ie1w 2 года назад

      bro, please make MORE SIMPLE EXAMPLES, without other not important information, make a simple sidebar plsss...

  • @shanekeney2060
    @shanekeney2060 4 года назад +4

    Great tutorial! The first video I came across that helped me get custom content in the drawer navigator.

  • @hareendranmg
    @hareendranmg 4 года назад

    Another quality content. Thanks again💪

  • @soumyojyotimajumdar1600
    @soumyojyotimajumdar1600 3 года назад

    This helped me a lot, Thanks

  • @donmenya2761
    @donmenya2761 2 года назад

    Excellent Tutorial. Thx!

  • @camilomiranda3528
    @camilomiranda3528 3 года назад

    you're amazing, thank you

  • @misha4712
    @misha4712 3 года назад

    You are awesome. Thanks!

  • @djuzla89
    @djuzla89 4 года назад +1

    Subscribed!

  • @gonzalovera4830
    @gonzalovera4830 4 года назад

    Hi great tutorial! What would be the best way to implement a different backgroundColor on each item (not random) ?

  • @devshah4467
    @devshah4467 4 года назад

    Very nice tutorial

  • @tziortziskyprianou2725
    @tziortziskyprianou2725 4 года назад +1

    You just saved me 1 hour at least! :) appreciate it bro! nice tutorial!

  • @BrunoBencke
    @BrunoBencke 3 года назад

    thanks bro!

  • @berneshodzic7898
    @berneshodzic7898 3 года назад

    First of all, great video! Thank you for this. I have one question. How can I change title of SideBar/Screen dynamically inside screen. For example, instead of Profile I want there name of user or something like that.

  • @fabianalvarez7801
    @fabianalvarez7801 3 года назад

    Awesome!

  • @pavanmarutibhoot142
    @pavanmarutibhoot142 3 года назад +2

    Excellent video. Can you create video for nested drawer navigation?. Means drawer navigation with submenus.

  • @varunkakkar8113
    @varunkakkar8113 3 года назад

    Your video helped me a lot, but not able to find a full working example on how to bring user profile data from my switch navigator to this drawer navigator, any suggestions?

  • @samuel90497
    @samuel90497 4 года назад

    Nice!

  • @nizammamedov3569
    @nizammamedov3569 4 года назад

    keep on!

  • @DesignIntoCode
    @DesignIntoCode  4 года назад +6

    Come chat with us on Discord! discord.gg/xg5auu4
    What would you like to see next?? Please leave a like on the video if you enjoyed it and subscribe to see more, it really helps out!! ❤️

    • @huzaifabaig2081
      @huzaifabaig2081 4 года назад +1

      thanks for this tutorial. Can u please create a drawer navigation for Native-base!

    • @russellogieva4245
      @russellogieva4245 4 года назад

      Hello
      I really need your help and guide on how to do a role-based login app with different user levels using RN.
      Let's say we have users
      1. Cashier,
      2. Manager and
      3. Customer
      Each user will have a dashboard and menu (drawer) specific to it.
      when you login as Manager it takes you to Manager's dashboard with Manager's specific Drawer Navigation
      when you login as Cashier it takes you to Cashier's dashboard with Cashier's specific Drawer Navigation
      when you login as Customer it takes you to Customer's dashboard with Customer's specific Drawer Navigation
      I am using a nodejs API on my local server as backend.
      Can you do a basic tutorial on how to do this and how to structure my folder.
      Thank you for your great tutorials and inspiration
      russellogieva@gmail.com
      Thank You

  • @cwcfunclock2709
    @cwcfunclock2709 2 года назад

    Can you let me know how to install expo with this project by using yarn package manager?

  • @DanielAlexisRivasNieto
    @DanielAlexisRivasNieto 2 года назад +3

    Hi, I like this tutorial, but I can't foward to de minute 4:44, after that the app don't run.. what are the dependency I need? I install react-navigation, react-navigation-drawer react-native-gesture-handler react-native-reanimated react-native-screens and nothing.. somebody help me?

  • @sanvirahman3396
    @sanvirahman3396 2 года назад

    so cool

  • @Ralpherdark
    @Ralpherdark 4 года назад +3

    hello, which dependias you use in this Drawer Navigation, always when I do mine it gives an error. Would you help me.

  • @nguyenngochai0z
    @nguyenngochai0z 3 года назад

    Good i like it

  • @wishellie4565
    @wishellie4565 2 года назад +1

    Hey Is it possible to do this now in this version of react native???

  • @wuz5296
    @wuz5296 4 года назад

    How do i use this to change screens or populate the screens shown ?

  • @prakashkrsingh0
    @prakashkrsingh0 3 года назад +1

    I didn't get 'this.props.navigation.openDrawer' at 2:00 min. where you defined 'openDrawer'? something is missing.

  • @JBL_RAJESH
    @JBL_RAJESH 3 года назад

    Nice tutorial, can u do on phone input with country verification with validation like whatsapp, telegram type

  • @oguzhan2393
    @oguzhan2393 3 года назад

    I am geting this error error: Error: Unable to resolve module `@unimodules/react-native-adapter` from `node_modules\@unimodules\core\build\AdapterProxy.js`: @unimodules/react-native-adapter could not be found within the project.

  • @haekalramadhan5935
    @haekalramadhan5935 4 года назад

    How to make the Sign Out button to the bottom of the drawer navigator?

  • @rodrigobalibrera1083
    @rodrigobalibrera1083 4 года назад

    How Can I implement a theme to this?

  • @OseiThibert
    @OseiThibert 3 года назад

    If I do pay Can i get the code and will it work with my Wordpress Divi Theme please reply

  • @hellostudybangla
    @hellostudybangla 4 года назад

    1st background music is awesome. How can i get it?

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      I use a paid service for the music. Not sure where else you could get it.

  • @ranupatidar2225
    @ranupatidar2225 3 года назад

    How to set position right side for drawer open

  • @joaooliveira8601
    @joaooliveira8601 3 года назад

    run in react-navigation 5 ?

  • @abhijeetshikharvlog1444
    @abhijeetshikharvlog1444 2 года назад

    How to add logo in toggle right side

  • @bollywoodworld2016
    @bollywoodworld2016 3 года назад +2

    all depencies is not include when this tutorial is created by this person

  • @iRafaelkr
    @iRafaelkr 4 года назад +1

    I'm getting an error:
    "TypeError: undefined is not an object (evaluating '_reactNavigation.ThemeColors.light')"
    I've already searched everywhere, but can't seem to find a solution for that

    • @DesignIntoCode
      @DesignIntoCode  4 года назад +2

      Hmm... Sounds like it maybe being caused by older or incompatible versions of react and react navigation. Grab the source for this from github and see if that project works.

    • @iRafaelkr
      @iRafaelkr 4 года назад +1

      @@DesignIntoCode Thanks for the reply, but I can't run the project from github here. I've started with react native like 2 months ago, so I'm kind new.. I think it's probably because you're using expo, but anyway.
      In my case I've tried following the steps on the video, starting a new react native project (react-native init projectName), and then just installed the same versions of the dependencies you had on the "package.json" file on GitHub. But then I was getting that error I mentioned earlier.
      Now I've downloaded the source from your GitHub, and when I try to run the project (I use 'react-native run-android') it gives me this error:
      "Android project not found. Are you sure this is a React Native project?"
      All I did was download the project, and I ran "npm install", then tried to run the project. It might be something really simple, that would happen only with me, 'cause I'm new to this, but if you could tell me what I should do to get it running, I would be thankful. hahaha
      Thanks again!

  • @user-ui8gr3cw7z
    @user-ui8gr3cw7z 4 года назад +2

    #HELP_ME
    Unable to resolve "react-navigation-drawer/lib/typescript/src/navigators/createDrawerNavigator" from "components\SideBar.js"

    • @tyylermike2830
      @tyylermike2830 4 года назад

      Probably you have to import this package first from npm
      Edit: Since its too late hopy you had figured it out yourself

  • @valo8277
    @valo8277 4 года назад

    Please can you make a full social network like a migme , mig33 ?

  • @arielbednar8381
    @arielbednar8381 3 года назад

    Very good tutorial!
    How can I call a view instead of printing the pending text?
    export const PendingScreen = ({navigation}) =>

    • @muskan5559
      @muskan5559 2 года назад

      Aapko answer mila ,i also want to know

  • @rahulnag9582
    @rahulnag9582 4 года назад +2

    Can you please let me know that how we can use drawer and stack navigation together in app.js file....

    • @yusufhadi4256
      @yusufhadi4256 4 года назад +2

      reactnavigation.org/docs/en/getting-started.html

    • @rahulnag9582
      @rahulnag9582 4 года назад

      @@yusufhadi4256 its not here completely,
      I already used this but the layout is noy working properly......after using stack navigator and drawer navigator both in app.js

    • @mohitarora2190
      @mohitarora2190 4 года назад +1

      Hey did u find any soln?

    • @rahulnag9582
      @rahulnag9582 4 года назад

      @@mohitarora2190 yeh....ill share the link to u

    • @mohitarora2190
      @mohitarora2190 4 года назад

      @@rahulnag9582 that would be great

  • @bhuvaneshwaran6049
    @bhuvaneshwaran6049 3 года назад

    Good work bro, but hideStatusbar is not good animated in android

  • @kosmosdeveloper3353
    @kosmosdeveloper3353 4 года назад

    What emulator are you using ?

  • @rkleib
    @rkleib 4 года назад

    I got error unable to resolve ./screens none of these files exist in App.js

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      You’ll need to create the screens.js file

  • @vruyrsaribekyan3379
    @vruyrsaribekyan3379 3 года назад

    I have a problem please help me

  • @rohitbit1394
    @rohitbit1394 4 года назад +1

    Getting error:
    unable to resolve react-navigation-drawer from app.js
    npm install -g react-navigation-drawer is not working.
    Please help.

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      Try without the -g

    • @rohitbit1394
      @rohitbit1394 4 года назад

      @@DesignIntoCode thanks for the help.
      gesture-handler and reanimated needed to be installed as well.
      But still getting an error like:
      TypeError: (0, _reactNavigation.createAppConatiner) is not a function. (0, _reactNavigation.createAppConatiner) is undefined.

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      Are you also installing react navigation and importing the needed modules?

    • @rohitbit1394
      @rohitbit1394 4 года назад

      @@DesignIntoCode I installed again react navigation and drawer as well. Still getting the same one. Is there any version conflict I'm having here?

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      It doesn’t sound like a version issue. Can you post a link to your code?

  • @anantv10
    @anantv10 4 года назад

    Hello my drawer list text is coming but part of it... for example if screen title is Profile then its coming like Profil not able to find where to change the style

    • @DesignIntoCode
      @DesignIntoCode  4 года назад +1

      It sounds like maybe the container your text is in is too small and cutting off the text

    • @anantv10
      @anantv10 4 года назад

      @@DesignIntoCode yes... So container contains only flex value 1 I'll try to add width der..but it's not working ...

    • @DesignIntoCode
      @DesignIntoCode  4 года назад +1

      Flex doesn’t necessarily make it stretch horizontally, put a background color on your container so you can see what dimensions it’s actually taking up

    • @anantv10
      @anantv10 4 года назад

      @@DesignIntoCode Already checked its full. i cross checked every part of style. and dont know y its giving me this wired issue..is there any chance issue with createDrawerNavigator as less letters are working fine i mean max 5 like "Lists" but others like chopping last 2 characters.

    • @anantv10
      @anantv10 4 года назад

      @@DesignIntoCode even If reduce text like instead of Profile i use Pro.. then too last character is gone

  • @propellerheadd
    @propellerheadd 4 года назад +1

    Does this work on web?

  • @aqibzareen2853
    @aqibzareen2853 4 года назад

    for react native cli this is working or this is only for expo #i am new to react native development

    • @DesignIntoCode
      @DesignIntoCode  4 года назад +1

      Works for both

    • @aqibzareen2853
      @aqibzareen2853 4 года назад

      @@DesignIntoCode thank you so much let me try

    • @aqibzareen2853
      @aqibzareen2853 4 года назад

      ​@@DesignIntoCode unable to resolve module'expo-font' from 'node_modules/@expo/vector-icons/build/characterIconSet.js'expo font could not be found within the project.kindly guide me thanks in advance

    • @DesignIntoCode
      @DesignIntoCode  4 года назад +1

      You can’t use expo fonts if you’re using the cli, you’ll need to replace them with something else

    • @marcoscastro540
      @marcoscastro540 3 года назад

      @Marshalls Corner Only look for the library in "reactnavigation.org/" and see how it import.

  • @vaibhawkr3904
    @vaibhawkr3904 4 года назад

    Unable to resolve "react-navigation-drawer" from "App.js"
    Failed building JavaScript bundle.

    • @DesignIntoCode
      @DesignIntoCode  4 года назад +1

      You have to npm install it

    • @vaibhawkr3904
      @vaibhawkr3904 4 года назад

      @@DesignIntoCode Yeah I resolved it, based on your tutorial I have made a custom drawer but in the sidedrawer I want it to have the background color of black instead of white in your case, any tips on that? Thanks

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      Just change the backgroundColor of the container to black

    • @vaibhawkr3904
      @vaibhawkr3904 4 года назад

      @@DesignIntoCode It was useful, but i want to build over it and add stuffs like header and contents on different screens
      bit confused about where to put the header component etc.
      Any help regarding that? I have also joined your discord group

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      It’s a view just like any other screen, you can build it out however you’d like

  • @muhammadkomailabbas2265
    @muhammadkomailabbas2265 4 года назад

    Is this react native v5 navigation

  • @MarceloRankel
    @MarceloRankel 3 года назад

    Hey man!
    My project runs, there are no errors, but the MENU Drawer does not appear, I have already followed several tutorials and all the menu does not appear and the drag does not work! What can it be?

    • @DesignIntoCode
      @DesignIntoCode  3 года назад

      What version of react navigation are you using?

  • @Alejandro-yq6oy
    @Alejandro-yq6oy 2 года назад

    Ya no funciona

  • @learnwithyog1721
    @learnwithyog1721 3 года назад

    error
    error

  • @Jack-fr8re
    @Jack-fr8re 4 года назад

    i recive an error he can't find contentComponent

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      Would need to see your code where you’re getting that error

    • @iLightify
      @iLightify 4 года назад

      You prob didn't do return(); in sidebar.js

  • @74n3r
    @74n3r 4 года назад +1

    i cant see drawer menu

    • @DesignIntoCode
      @DesignIntoCode  4 года назад

      Make sure your code is exactly the same as I have throughout the video.

    • @MarceloRankel
      @MarceloRankel 3 года назад

      Same here, the project and everything works but the menu does not appear!
      managed to make it work?

  • @collegemelody
    @collegemelody 3 года назад

    abe bhai kya kya dependencies thi wo to bta deta 4 5 hrs waste hogye fir bhi nhi mila kuchh

  • @000learningzone
    @000learningzone Год назад

    In hindi language

  • @juanhuttemann
    @juanhuttemann 4 года назад

    We need voice over, for a little explaination

  • @learnwithyog1721
    @learnwithyog1721 3 года назад

    achese explain kro installation process gnta smj nahi aa rahi h
    waste of time

  • @hpsankur
    @hpsankur 2 года назад

    Its waste as new methods are available now.

  • @richardpatove4587
    @richardpatove4587 2 года назад

    it is a very bad telling