Drag and Drop in React Native with PanResponder

  Рет қаралды 49,101

Ben Awad

Ben Awad

Күн бұрын

Learn how to code a drag and drop flatlist in React Native.
Code: github.com/benawad/drag-and-d...
Links from video:
stackoverflow.com/questions/1...
facebook.github.io/react-nati...

----
Follow me online: voidpet.com/benawad
#benawad

Пікірлер: 40
@dennistennis5622
@dennistennis5622 4 жыл бұрын
Nice to have you back and good that you enjoyed your holiday! 😀
@mrmuffyman
@mrmuffyman 3 жыл бұрын
Thanks for this tutorial dude. Listening to you explain it slows things down so I actually understand it instead of skimming through docs.
@fr3fou
@fr3fou 4 жыл бұрын
welcome back :)
@failure232
@failure232 3 жыл бұрын
Dear Ben Award, Do you test you solution inside parent ScrollView? Thanks
@pavsoor
@pavsoor 4 жыл бұрын
Great video, thank you! Can you explain the syntax used when you wrote Array(200)? I can't find that written anywhere - it's the first time I've come across something like it
@bawad
@bawad 4 жыл бұрын
initializes the array with length 200
@muhammadumar-lw9fg
@muhammadumar-lw9fg Жыл бұрын
@@bawad I have implemented dragging to left using pan-responder of all flatlist items with single drag as it it implemented in a instagram chat. But when flatlist is large response is very slow. How can I improve performance of dragging large list using pan-responder ?
@aashayamballi
@aashayamballi 4 жыл бұрын
Heyyy welcome back Ben :)
@samerkayali4525
@samerkayali4525 3 жыл бұрын
have you done the other video?
@bantinggamer4962
@bantinggamer4962 4 жыл бұрын
very very cool. thanks
@jexxiewoo8390
@jexxiewoo8390 4 жыл бұрын
Ben is back:)
@HaiderAli-oi5fm
@HaiderAli-oi5fm Жыл бұрын
How are you able to show console logs in nice way in terminal at @11:05
@pankajmundra7814
@pankajmundra7814 3 жыл бұрын
Hi Ben, awesome tutorial, but I a need help. Can you please show us how to do this coding in js instead of tsx.
@ricodane6847
@ricodane6847 Жыл бұрын
hello, have you seen a solution for this on jsx?
@cuongduongmanh625
@cuongduongmanh625 4 жыл бұрын
Can you share your RN settings in vscode (extension, config), such as a setting sync config file?
@bawad
@bawad 4 жыл бұрын
gist.github.com/benawad/1e9dd01994f78489306fbfd6f7b01cd3
@Viruhemanth
@Viruhemanth 4 жыл бұрын
can we expect a series on react native reanimated?
@bawad
@bawad 4 жыл бұрын
nope, I've never used reanimated
@MRBala-xx5si
@MRBala-xx5si 2 жыл бұрын
can you please tell me which editor is this?
@guilleagudelo777
@guilleagudelo777 2 жыл бұрын
VS Code
@ben6
@ben6 4 жыл бұрын
Continuation: kzbin.info/www/bejne/p5augWV3bMd_i9k
@fotios4902
@fotios4902 4 жыл бұрын
@13:48 Can someone explain what this is: Animated.event([{ y: this.point.y }])({ y: gestureState.moveY }); I've seen code like this: 1. If you're interested to the `evt` Animated.event([ { nativeEvent: { contentOffset: { y: this._animation } } } ]) 2. If interested to `gestureState`. Animated.event([ null, { dx: this._animation.x, dy: this._animation.y } ]) So this `Animated.event([{ y: this.point.y }])({ y: gestureState.moveY });` is then probably an IIFE, and in the second (... ) Ben passes an object as a parameter. Right? But how does this work? And why he doesn't use null if the first place of the array, like in No 2? Thanks
@IntetraX
@IntetraX 3 жыл бұрын
Did you ever find a good explanation for this syntax? Looks like greek to me. I would love to understand whats happening.
@fotios4902
@fotios4902 3 жыл бұрын
@@IntetraX No, not yet bro... and I’m Greek 😄 Imagine that... 😂😂😂 PS I know the expression. 😉
@johanvillamil2407
@johanvillamil2407 4 жыл бұрын
why don't you use hooks?
@bawad
@bawad 4 жыл бұрын
Implementing this with a class was simpler
@johanvillamil2407
@johanvillamil2407 4 жыл бұрын
@@bawad But do you think that flatlist performance can be affected by hooks?
@bawad
@bawad 4 жыл бұрын
no, I don't think it matters either way
@southredmondtoxik1885
@southredmondtoxik1885 Жыл бұрын
Learning react native is very easy than setup it's environment 🥺😓
@edt723
@edt723 4 жыл бұрын
I despise expo to the core. 🤬
@bawad
@bawad 4 жыл бұрын
why
@edt723
@edt723 4 жыл бұрын
@@bawad it's just a framework that wraps around another framework. So now its 3 levels of a mess that you have to deal with. I think it would be ok for simple small projects. Maybe even pure JS/TS project, but if you are doing anything with the hardware (GPS, camera, storage.. etc) or if the project is going to be big. Stay away from expo. I have really bad experience with it, I took over a project where the previous developer used expo, everything was broken, I spent 2 days trying to fix all the issues before I gave up. The funny thing is that I wasn't alone, I found all the issues on stackoverflow, github, and expo forums, there was always hacks, weird workarounds, and overall things not recommended. I ended spending 3 days stripping out expo and migrating everything to just pure React Native
@bawad
@bawad 4 жыл бұрын
true if you have to do something that expo doesn't support, it gets messy
Drag and Drop in #PowerApps #CanvasApps #ModelDrivenApps
27:10
Scott Durow
Рет қаралды 46 М.
The New React Native Architecture
25:59
Theo - t3․gg
Рет қаралды 124 М.
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 3,1 МЛН
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 20 МЛН
#12: Pan Responder API - React Native Animations
5:45
Mehul - Codedamn
Рет қаралды 20 М.
This React Drag and Drop Component Is Magic
9:56
developedbyed
Рет қаралды 73 М.
Drag and drop - Flutter Build Show
18:37
Flutter
Рет қаралды 43 М.
Computing FlatList Indexes in React Native
22:14
Ben Awad
Рет қаралды 10 М.
how i learned React Native in 1 day (my experience)
6:29
Clever Programmer
Рет қаралды 186 М.
Gesture Handler tutorial in React Native
26:24
notJust․dev
Рет қаралды 28 М.
Drag and Drop in React with React Beautiful DnD
5:51
Colby Fayock
Рет қаралды 165 М.
Instagram Pinch-to-Zoom - “Can it be done in React Native?”
34:50
William Candillon
Рет қаралды 34 М.
Duolingo Drag-and-drop - “Can it be done in React Native?”
53:04
William Candillon
Рет қаралды 45 М.
Multiple Drag and Sort List in Reanimated 2
16:59
evening kid
Рет қаралды 21 М.
Pratik Cat6 kablo soyma
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН
#miniphone
0:18
Miniphone
Рет қаралды 11 МЛН
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 2,8 МЛН
МОЖНО ЛИ заряжать AirPods в чехле 🧐😱🧐 #airpods #applewatch #dyson
0:22
Apple_calls РЕПЛИКА №1 В РФ
Рет қаралды 22 М.