React Native Tutorial #6 - Lists & ScrollView

Sdílet
Vložit
  • čas přidán 7. 08. 2024
  • Hey gang, in this React Native tutorial we'll talk about how to display lists of data in our apps. To do this we also need to look at a component called ScrollView, which allows us to scroll through long lists that are bigger than the area available on the screen
    ----------------------------------------
    🐱‍💻 🐱‍💻 Course Links:
    Course files - github.com/iamshaunjp/react-n...
    🐱‍💻 🐱‍💻 Other Related Courses:
    + Complete React Tutorial - • Complete React Tutoria...
    + React Hooks & Context Tutorial - • React Context & Hooks ...
    + Modern JavaScript Tutorial - • Modern JavaScript Tuto...

Komentáře • 85

  • @ishangogna2147
    @ishangogna2147 Před 4 lety +21

    I sincerely want to take a minute here and thank you for your videos. They are truly informative and easy to comprehend. You simplify and make web development fun to such an extent that its started to become an addiction!

  • @emrySoda
    @emrySoda Před 2 lety +5

    I started learning react not long ago and I got into problems pretty quickly and every time I got on your video I've understood everything. Thank you so much!

  • @wavelayer
    @wavelayer Před 4 lety +4

    easy to see how much programming experience you have - your approach is evidence enough for that. very good and straight forward.

  • @TheAditya64
    @TheAditya64 Před 4 lety +3

    After learning the react and getting the job as a React Dev, It's time again from our very own shaun to get started with Native

  • @danpetre5414
    @danpetre5414 Před 4 lety +1

    I love how you explain every video. thank you for your kindness :)

  • @sudonitin
    @sudonitin Před 4 lety +1

    Thank you so much...! Your videos helped me catch up with react native very fast.

  • @TheNerdyDev
    @TheNerdyDev Před 4 lety +7

    As always awesome explanation 💥

  • @diyabakree1
    @diyabakree1 Před 3 lety +1

    thank youuuuuuu i was stuck on somthing for 2 weeks this video helped me finaly all the love for you

  • @schwkrls
    @schwkrls Před rokem

    Awesome tutorial. Very concise and well for newcomers to React and devs with React experience who want to learn Native.

  • @dannyman2200
    @dannyman2200 Před 3 lety +11

    this playlist is supreme!

  • @chiomankem-eze3969
    @chiomankem-eze3969 Před 4 lety

    Thanks for the series, really helpful

  • @eazlai
    @eazlai Před 4 lety

    Thanks for sharing the return shortcut!

  • @hitungdongapps
    @hitungdongapps Před 4 lety

    thank you , it's very clearly and very cool for me. Cheers! from indonesia

  • @the_pykid
    @the_pykid Před 2 lety +1

    ay thx bruh this helped me no cap

  • @guymross
    @guymross Před 3 lety

    This tutorial is really top notch. Signed up to your Patreon as well, (but would have preferred a more direct way to support). Thank you!

  • @DrNabeel20
    @DrNabeel20 Před 3 lety

    Amazing as usual 😊

  • @fathhanaeuclidea9949
    @fathhanaeuclidea9949 Před 4 lety

    Very good tutorial

  • @vuongqtvn
    @vuongqtvn Před 2 lety

    very simple best teacher

  • @emmalynnabiamos2412
    @emmalynnabiamos2412 Před 3 lety

    Thank you for doing this

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv Před 4 lety

    Thank you so much..please jaldi upload kro sir

  • @haisesasaki4776
    @haisesasaki4776 Před 3 lety

    Thanks for this video

  • @ademineshat
    @ademineshat Před 3 lety +2

    Absolutely awesome 😎 I would suggest an advanced paid course for react native 🤞

  • @adityajangle3963
    @adityajangle3963 Před 4 lety

    Nice tutorial, How can i do this for dynamic data like data in array to useState and then use it for scrollview

  • @user-hb5jj8lc8l
    @user-hb5jj8lc8l Před 4 lety +1

    Could you make a video comparing Flutter and React Native? Thanks always!

  • @SalsaColombiaUS
    @SalsaColombiaUS Před rokem

    Very good tutorial thank you for this))

  • @AtifKhan-cm8qv
    @AtifKhan-cm8qv Před 4 lety +1

    Hi, as always this is a very nice video. But May I ask, what is the name of your theme on your vscode. Cause I Like The Colors ! Thanks

  • @karoldrazek7614
    @karoldrazek7614 Před 4 lety +1

    You're good teacher :)) Btw, what's your theme? I like it too

  • @sparkky5843
    @sparkky5843 Před 3 lety

    How does this work if you already have a component made? I'm trying to put components within a scrollview however keep a text input at the top outside of it. When I do this it distorts the styling of the component and says I can't alter the style unless the entire page is within the scroll view

  • @Saitoisis0nfire
    @Saitoisis0nfire Před 3 lety

    How can I make the ScrollView start in the bottom? Like a Chat App for example

  • @bichngocnguyenthi7020
    @bichngocnguyenthi7020 Před 5 měsíci

    why we need {} wrapped around people.map() and whats dynamic code?

  • @manoj-k
    @manoj-k Před 2 lety

    🔥🔥🔥

  • @bluevision4800
    @bluevision4800 Před rokem

    please please please a request create a vide explaining how to add google fonts i create and added font but when i run the app it says openSans font is not found in the system but when i check edit exists in the system

  • @mohammadgolestnai1210
    @mohammadgolestnai1210 Před 3 lety

    good

  • @ronny4782
    @ronny4782 Před 3 lety +1

    I just want to add something:
    Adding the key to every object (person) is not necessary; when you call the map function, you can pass a second argument: index; this index totally works as a key and you can use it.
    Idk if that's clarified in the next videos but just in case.
    Also, thank you very much for your time

    • @ankurkumar4552
      @ankurkumar4552 Před 3 lety +1

      You are partially correct here, what you stated above can lead to issues.
      According to react docs:
      "The best way to pick a key is to use a string that uniquely identifies a list item among its siblings. Most often you would use IDs from your data as keys. When you don’t have stable IDs for rendered items, you may use the item index as a key as a last resort. We don’t recommend using indexes for keys if the order of items may change. This can negatively impact performance and may cause issues with the component state."
      Reference: reactjs.org/docs/lists-and-keys.html#keys

    • @ronny4782
      @ronny4782 Před 3 lety +1

      @@ankurkumar4552 thank you very much!

  • @TheNerdyDev
    @TheNerdyDev Před 4 lety +1

    Can't we make the outer View as ScrollView directly?. This will also the same results I believe

    • @zachyang1041
      @zachyang1041 Před 4 lety

      I think in this case, they are the same because there is no any other view in the outer view besides this list, but if you have some other views on the top of this list and you don't want them to be scrollable, you have to add ScrollView onto the list..

  • @patiencecondell753
    @patiencecondell753 Před 3 lety

    how do we cancel the project when we are taking a break or going to bed?

  • @AymanSabri
    @AymanSabri Před 3 lety

    what's setPeople in there ?

  • @mayurgaikwad8431
    @mayurgaikwad8431 Před 4 lety

    Flutter is good or React native in 2020

  • @aribkamal3239
    @aribkamal3239 Před 2 lety

    Is anyone having an issue where if you press one of the touchable Components, all of them disappear ?

  • @iancuvlad7368
    @iancuvlad7368 Před 4 lety

    I get the key error even after adding key prop to returned View

  • @vahabshalchian3232
    @vahabshalchian3232 Před 6 měsíci

    $ git checkout lesson-6
    error: pathspec 'lesson-6' did not match any file(s) known to git

  • @tetricko
    @tetricko Před 2 lety

    how can i add a search bar to this list?

  • @fsociety692
    @fsociety692 Před 3 lety

    very good bro
    but 1 thing it also giving me child error in list i use item.key but it not work

  • @MS-nh7zj
    @MS-nh7zj Před 4 lety

    Please make an e commerce application on React Native !

  • @aayushsingh8885
    @aayushsingh8885 Před 4 lety +1

    I am having problem in downloading expo guide us through ninja it showing invalid regular expression

    • @BlindFolded
      @BlindFolded Před 4 lety +1

      Try this github.com/expo/expo-cli/issues/1074#issuecomment-546167583 or downgrade node.js to 12.9 or older.

    • @osamagamal495
      @osamagamal495 Před 4 lety +1

      github.com/facebook/react-native/issues/26598

  • @friendzenterkolkata
    @friendzenterkolkata Před 4 lety

    Is it only me or JavaScript's Functional Programming syntaxes are exactly like Scala? Fortunately I learnt Scala before Node so I had minimum problems with the lambdas and whatnot.

  • @marlonmartins23
    @marlonmartins23 Před rokem

    strange, for me the ScrollView is not working

  • @nizammamedov3569
    @nizammamedov3569 Před 4 lety

    Please connect backend

  • @papa_ethan
    @papa_ethan Před rokem

    No lesson 6 on github

  • @deanwalker3956
    @deanwalker3956 Před 3 lety

    Who are you who are so wise in the ways of science?

  • @yapayzeka
    @yapayzeka Před 4 lety

    6 months ago I use map like you but now I changed. it is not for me to say master but you dont have to add key to the list in the state. here is another aproach:
    (list is the same without key property)
    {people.map((item, index) => {
    return (
    {item.name}
    )
    })}

    • @ArtVandelayInc
      @ArtVandelayInc Před 3 lety

      This is not a recommended method for the keys. Check out the React documentation

    • @yapayzeka
      @yapayzeka Před 3 lety

      ​@@ArtVandelayIncIt is totally fine in certain conditions. It says:
      "When you don’t have stable IDs for rendered items, you may use the item index as a key as a last resort:"
      usually I dont have stable ids. because if i have stable ids, i use the id as key.

    • @rajairfan2768
      @rajairfan2768 Před 2 lety

      @@yapayzeka hi thank you for this tip. I have a question if you dont mind. How do I output the data if each item has a dirfferent variable name? For example, instead of having name for each item. It has this
      {name: "John"},
      {name2: "Mike"},
      {name3: "Tom"}

    • @yapayzeka
      @yapayzeka Před 2 lety

      @@rajairfan2768 dude quit react asap! come to svelte 👌🏻

    • @rajairfan2768
      @rajairfan2768 Před 2 lety

      @@yapayzeka I've heard about Svelte, but I'm already progress too far in my final year project. So I cant change at this point

  • @osamagamal495
    @osamagamal495 Před 4 lety +2

    quick side note : use shift + RR (2 Rs) to refresh the emulator. or command + M.

  • @nadjemtech4963
    @nadjemtech4963 Před 4 lety

    Hi ninja!
    i complete javascrpt for beg.. , PHP for beg ,i know how create responsable web site
    but what are after ?? give me the ordre of your playlists;
    i need learn all about javascript
    plz answer me fastly
    *//i have bad english i know :(
    //*

    • @MrMrLinx
      @MrMrLinx Před 4 lety

      Hello, I'd say learn react or angular.

    • @enduranceochonogor6291
      @enduranceochonogor6291 Před 4 lety

      Doesn't map function return a new array???
      I was expecting we would use forEach.

  • @codewithdev1476
    @codewithdev1476 Před 3 lety

    your channels name should the react native ninja

  • @Solomoki23
    @Solomoki23 Před 3 lety

    this lesson was a bit difficult ngl