Draggable Bottom Sheet with PanResponder and Animated - React Native

Ғылым және технология

Github: github.com/juniorforlife/reac...
Facebook: / minhtechie
☕️ Support me: www.buymeacoffee.com/minhtech...

Пікірлер: 41

  • @MinhTechie
    @MinhTechie Жыл бұрын

    Lý do mình dùng translateY mà không dùng height là vì height sẽ cần interpolate để map từ dy ra height tương ứng và height thì không dùng useNativeDriver true được

  • @user-lq2ph1ue8r
    @user-lq2ph1ue8r Жыл бұрын

    it was so helpful tutorial. Thank you so much

  • @manilmalla1911
    @manilmalla19115 ай бұрын

    Great video. Very helpful.

  • @jackychou2644
    @jackychou2644 Жыл бұрын

    Thanks!

  • @angongtruong8441
    @angongtruong8441 Жыл бұрын

    mỗi video bạn đều phân tích kĩ như thế này thật hay quá, học được biết bao nhiêu thứ để cải thiện kỹ năng. Mong bạn ra nhiều video như thế này nữa.

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    cảm ơn bạn :D bạn share video để ủng hộ mình nhé

  • @nguyenngoc8239
    @nguyenngoc8239 Жыл бұрын

    hay lắm bạn, mong chờ video tiếp theo của bạn

  • @playalimbo4905
    @playalimbo4905 Жыл бұрын

    very useful my friend, I will use this for an app im working on. thank you a lot

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    cool! I'm glad you can understand the video without subtitles

  • @xuanthanhly3528
    @xuanthanhly3528 Жыл бұрын

    hay lắm anh ơi from nhóm của anh :3

  • @memostartup281
    @memostartup281 Жыл бұрын

    Amazing tutorial

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    thanks man

  • @butters2390
    @butters2390 Жыл бұрын

    all the time i was reading what you type and was thinking that you talk in english, i didn't realise until the end

  • @nishithmunda7789
    @nishithmunda7789 Жыл бұрын

    life saver 🙂

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    thanks bro. Fortunately for us there's already a well-built library for this :)

  • @vankhoaphung6651
    @vankhoaphung6651 Жыл бұрын

    Mong anh ra video thả reaction như facebook !

  • @1theKzzz
    @1theKzzz Жыл бұрын

    Anh có định làm thêm các bài nâng cao về BottomSheet không ạ? Ví dụ như về việc conflict gesture của PanGesture với 1 cái ScrollView ở bên trong, vấn đề này em tìm hiểu mãi nhưng chưa làm được :(

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    ok bạn mình sẽ note lại để mốt làm video

  • @awakeupcall5336
    @awakeupcall5336 Жыл бұрын

    What if I want dynamic height of the sheet? Depending on content height inside the sheet

  • @bismarkcodes

    @bismarkcodes

    Жыл бұрын

    in that case, try using minHeight instead

  • @damjanosemini796
    @damjanosemini796 Жыл бұрын

    How to move modal from everywhere, and not only from the dragHandle ?. Although it close if you doubleClick on it. How to fix it ?

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    You can try to add the PanResponder to the whole modal instead of just the handle. I haven't tried the double click but I guess nobody does that 😅

  • @cuongnguyen1230
    @cuongnguyen1230 Жыл бұрын

    Kiến thức bổ ích quá. Anh ra video kết hợp Bottom Sheet dùng với Flatlist được không ạ?

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    sẽ có e nhé

  • @awakeupcall5336
    @awakeupcall5336 Жыл бұрын

    Could you explain how implement logic when draggable sheet doesn’t move outside of screen or another view, but instead draggable area moves above content and hide content w/o moving content inside sheet. It’s like behaviour when user sees content inside that sheet closer to screen edge faster than content that closer to screen center when you uncover the sheet

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    sorry I don't get what you mean

  • @awakeupcall5336

    @awakeupcall5336

    Жыл бұрын

    ​@@MinhTechie imagine picture inside of bottom sheet. it's face of man. your case - when you pull it up, you see firstly hair and eyes. Instead, my case - when you pull it up you see firstly chin and lips and kinda uncover the rest face like from curtain. The image itself is static and doesn't move

  • @JamLangThang
    @JamLangThang Жыл бұрын

    Cho em hoi la react native so voi flutter hien tai thi cai nao hon a

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    so sánh react native với flutter cũng giống so sánh angular với react e ạ. mỗi cái có cái hay cái dở riêng không cái nào hơn hẳn cái nào

  • @namhoang5282
    @namhoang5282 Жыл бұрын

    đỉnh quá bác ơi. viết được như này bác đã bỏ ra bao nhiều tgian, bắt đầu từ nghiên cứu đến lúc code xong ạ?

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    khoảng vài ngày á bạn ơi. ban đầu thì mình tính xài height nhưng sau đó thấy translateY hợp hơn

  • @ItsDaiko
    @ItsDaiko Жыл бұрын

    Is it possible to set the whole screen to be draggable overruling the content in the view itself? Instead of having the bar you can you just place your finger anywhere and it will react even if there is a button underneath?

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    yeah it's totally possible. You can try to wrap the whole view with PanResponder instead of just the bar. I haven't tried so not sure how it works. Things might get complex if you have a ScrollView inside the sheet so I prefer to have only the bar draggable

  • @ItsDaiko

    @ItsDaiko

    Жыл бұрын

    @@MinhTechie How could you implement a bottom screen which has 3 states? so the bottom one. then a mid and a top? which would be +- 95% of the screen?

  • @ThatIsWhatIThink
    @ThatIsWhatIThink Жыл бұрын

    Can you Share Source Code link ?

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    github.com/juniorforlife/react-native-animations. Don't forget to give it a star :D

  • @mykun8737
    @mykun8737 Жыл бұрын

    hay quá bạn à, lập trình viên react hơn nhau ở chỗ làm animation

  • @MinhTechie

    @MinhTechie

    Жыл бұрын

    ngoài animation còn nhiều thứ dev cần giỏi lắm bạn :D

Келесі