React Native Tutorial #21 - Navigating Around

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

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

  • @stunthumb
    @stunthumb 9 месяцев назад

    Ahah! - finally some actual results... I've been through a few tutorials and forum posts and still couldn't get a stack navigator to work how I want. These videos make it clear and you present them perfectly. Thank you!

  • @luke18495
    @luke18495 Год назад

    Thank you for this (and the past couple of other ones)... I had already learnt the very basics from another tuturoial however it didn't cover navigation and now I am trying to build my own application I needed to navigate between screens... Lots of other tutorials didn't help me but the way you explained this made it so simple to understand what a stack was and how to use it - thank you!

    • @NetNinja
      @NetNinja  Год назад +1

      That's awesome to hear, thanks Luke! :)

  • @vehementvenerableviking9504
    @vehementvenerableviking9504 4 года назад +12

    Dude, you are A.M.A.Z.I.N.G!!! Thank you

  • @afro_habesha
    @afro_habesha Год назад +2

    your teaching method is spectacular

    • @NetNinja
      @NetNinja  Год назад +1

      Thank you :) that means a lot!

  • @gibber1sh-c6w
    @gibber1sh-c6w 2 года назад +5

    I'm tapping out. Nothing works with the newer version of React Native. It's a shame because it was brilliant up to this point.

    • @kasje
      @kasje Год назад

      Same.. so frustrating

    • @johnsonlive9173
      @johnsonlive9173 Год назад

      this tutorial works in react-navigation 4 but current version uses react-navigation 5

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

    Man the number of things you teach here!! It must take so much effort to first get them down yourself.

    • @NetNinja
      @NetNinja  4 года назад +7

      It really does!! Haha

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

      The Net Ninja thanks man for all of it

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

    hahaha

  • @anhquannguyen5111
    @anhquannguyen5111 5 лет назад

    great video. thank you Ninja ! Merry Christmas !

  • @jamalxd5647
    @jamalxd5647 Год назад

    7:05 so that why we got destucturing{navigation} on every component.. because we have assign them on HomeStack.js is right?

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

    I love you , you are helping me so much

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

    Bro you are so good! This lesson is very important , thank you! But if I want to make a button that change screens on a child component, what I have to do? Thank you!

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

    Hi, love the content, but I jumped in on the navigation part and was wondering in which video in this series u are talking about the globalstyles and the fontstuff on ur App.js

  • @kallbacks9677
    @kallbacks9677 5 лет назад +1

    Very informative video, nice one.

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

    Awesome video! thank you!

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

    TE MAMASTE, ES EXACTAMENTE LO QUE BUSCABA, GRACIAS!!!!

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

    Hello sir I watch this video and previous one also, according to the instructions i did all steps but i am getting error like "Unable to resolve "react-navigation" from "routes\homeStack.js"" please suggest something

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

      hello komal this is probably due to the React navigator version 5 ... just uninstal all your packages and dependencies and install the new ones like this :
      1- npm install @react-navigation/native
      2- then you install the second package for expo like this =>
      expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
      3- then type =>
      npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
      4- finally import react native gesture handlebar on the top of your App.js (make sure that it is on the top and nothing else is before it ) like this for exemple :
      import 'react-native-gesture-handler'
      import * as React from 'react';
      import { View, Text } from 'react-native';
      ... etc !!
      now you can safely do the job ;) hope that it will give you the needed help bro

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

      @@TheAdel136 Thanks a lot sir for giving your precious time to answer my query. Your solutios and rest of the vedios on navigation really helps for me.
      Thanks a lot again sir.

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

      @@komalgardi2406 i'am glad that it was helpful for you !! lot of love

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

    ok i tried many times but the variable or function that you made named pressHandler didn't work for me... so i wrote the navigate statement direct to onPress and that worked.

  • @ahmedkayali4285
    @ahmedkayali4285 4 года назад +5

    very powerful tutorial but unfortunately the navigation 5 is different. Hope to see new tutorials in navigation 5

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

      I've shared the code to implement react-navigation 5 here: github.com/maximebarber/reviews-app/tree/react-navigation-5

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

      @@maximebarber3780Wow!! Thank you so much. You got a subscriber and a follower on github!!

    • @sarahismail-ob4is
      @sarahismail-ob4is 4 года назад

      @@maximebarber3780 hai, my 'Home' can't seem to accept ({navigation}). Can you help me with this ? Thanks !

  • @md.sahilansari5596
    @md.sahilansari5596 3 года назад

    Worthy video 👌

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

    It seems pretty easy so far. Maybe It is just because you know what you are teaching

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

    Help, undefined navigation, I tried to console.log the navigation

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

    I have a problem: I want to navigate from Screen 1 to Screen 2 to Screen 3. So I called:
    + this.props.navigation.navigate("Screen 2") in Screen 1, and
    + this.props.navigation.navigate("Screen 3") in Screen 2.
    And for some reason, it just comes straight from Screen 1 to 3, skipping screen 2. It may be because of the "navigate" command in Screen 2 overlap the one in Screen 1.
    How can I change? Please help.

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

    very helpful video....thnku Sooo much

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

    i am stuck with this error when i do this
    Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider
    Can someone help me out?

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

    Wonderful! Amazing!!!!!!!!

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

    When doing this on the iOS simulator it's not showing a navigation bar with a back button. Is that normal?

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

      I'm doing this on a physical iphone xr and I also don't have a back button.
      EDIT: Nevermind I had headerMode="none" on the "Navigator" tag

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

    Sir how i can hide header for somescreens

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

    Bravo man❤️

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

    Thank you so much!

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

    AMAZINGGHH TY MAN

  • @ΚωστήςΒυτινιώτης
    @ΚωστήςΒυτινιώτης 4 года назад

    Amazing videos. I have one problem, when i try to add a button i can see only the title but not the button it self. I've tried to do npm install react-native-button but it dint 't work.

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

      Check your operation system, on ios, you will only have clickable text

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

    You are the best!

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

    love you efforts from pakistan

  • @manoj-k
    @manoj-k 3 года назад

    🔥🔥🔥

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

    This didn't work for me. I had to work from the documentation at hello react navigation.

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

    THANK YOUUU

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

    thank you

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

    This was a function, but how to do it with a class?
    Ans: this.props.navigation.navigate('class_name');

  • @msvmanikantasrivishnu7788
    @msvmanikantasrivishnu7788 5 лет назад +1

    1st comment

  • @alexc7095
    @alexc7095 5 лет назад

    If you are sick and tired of youtube's ads like and share and spread this message. Enough ads !

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

      buy a youtube plan and will not see any ads.

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

      @@wilsonb4175 dude get lost. The internet was originally made for the military and to share research data not so that some moron tells us to buy "no-ads" because how i see it... some people pay to shove ads down your throat and other people should pay not to have ads shoved down their throats..

    • @NetNinja
      @NetNinja  4 года назад +13

      The only way I make money off RUclips is via the ads, without them, I wouldn't be able to keep doing tutorials for free.

    • @paristar3079
      @paristar3079 4 года назад +5

      @@NetNinja You are doing great. Other charges hundreds of dollars for React or other courses.

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

    thank you