React Native Tutorial #8 - Touchable Components

preview_player
Показать описание
Hey gang, in this React Native tutorial we'll see how to create touchable components, and wrap them around other components so that they can be pressed (much like a button component).
----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🐱‍💻 🐱‍💻 Other Related Courses:

Рекомендации по теме
Комментарии
Автор

-What is React-Native?
-It's a bunch of built-in Components. :D
Thank You, Shaun, for these awesome straightforward tutorials.

osamagamal
Автор

i didn't know that we could pass a function inside the set function of useState. this thengang is so amazing that I learn new stuff with him even after taking 2 react native courses.

JuanDeSouza
Автор

I will keep on Saying thank You, to you my Broo For Everything!!!! Big Up Broo
👍👍👍👍

patric_forreal
Автор

Hey!
Thank you very much for these great videos!
I know you haven't finished the tutorial yet, but you could also consider creating content about the use of animations!

yank
Автор

you are the best of the best out there, plz keep doing whatever you're doing cause i dont know what I'll do without you.

redmangoapple
Автор

Why not just use: people.filter(item => item.id !== id); ?

kunaldeshpande
Автор

Is it necessary to use prevPeople or can you just here))?

BookOfSaints
Автор

In 5:16, how did he just randomly choose the variable name "prevPeople". Where did this variable come from and how does the program now its the previous state of the people variable?

drtamiz
Автор

I didn't get prevPeople variable. Where did you define? is it parameter?

yloibx
Автор

it was really helpful . thank you so much :)

zahramoosavimirheydari
Автор

4:24
Could we just call pressHandler directly instead of using an arrow function?

onPress = {pressHandler(item.id)}

ehclipse
Автор

Thank you very much!

Ok, i think we need a link to pay the entire course hahaha i cant wait

andreivandrummer
Автор

Great programming & teaching skills! Thank you for sharing!

MonicaL.San.
Автор

Hey dude, you’re awesome. I don’t know how many appreciation comments you get, but I’m sure it’s not enough.

morezco
Автор

Thought I might throw this in here, if anybody can help me. I want to change the pressHandler so that if I change a name, it is changed to 'teddos' but the other names remain the same. The emulator now says 'Can't find variable setPeople'.



      if (element.id == id) {

      }
    });
  })
}

theodorn
Автор

Thank you, ninja! I'd really like to see a tutorial about the best way to pick up a new technology since you have mastered so many. Maybe a generalised version of your methods or plan to get fast on track as a senior developer. Do you just read the documentation? Do you watch any tutorials just like us or you are lead by your intuition ? What type of intuition should a developer develop?

yawningoutside
Автор

A question came into my mind is it possible this app can be run on ios and android both ?

bluevision
Автор

Why can't we directly call the Presshandler function in the OnPress Prop? Why do we have to call an anonymous function first which in turn will call the PressHandler function?

kashishkukreja
Автор

A great series but something i would like to point out at 2:55 is that in react you should avoid creating inline functions to avoid performance issues. Its much encouraged to create a child component and pass a value to the child and then pass the onpress callback with id from the child component back to the parent.
The reason why this causes performace issues is because of how data structures work. It causes the garbage collector to be invoked very often and this will cause performance issues especially when you have components with many state changes.

geoffrey
Автор

thank you very much
very helpful. i want to know how do you make touchableOpacity totouch only one list in the array?

lebogangmocuminyana