Chrome Drag-to-Sort - “Can it be done in React Native?”

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ •

  • @TheOldi19
    @TheOldi19 4 роки тому +2

    I am watching you 1 month man and i think you are Unbelieveble. I have learned so much about react native because i am new just 1 month studying. I will take part of your courses and keep doing th great. You pass the knowledge with such an easy way. What to say man you are the one you must have milions of subs I love your accent is really enjoyable to watch you. I have seen all your videos!!!!

  • @pietertolsma5022
    @pietertolsma5022 3 роки тому +4

    Hi William, I want to thank you for these amazing tutorials! Just purchased your reanimated 2 course, it's really motivating to see you experience issues that I face as well and how you handle them. Keep it up!

    • @wcandillon
      @wcandillon  3 роки тому

      Thank You Pieter, really appreciate it 🙌🏻

    • @ezrajoel870
      @ezrajoel870 3 роки тому

      i guess I am pretty off topic but does anyone know a good site to watch new series online?

    • @kannonbrixton9771
      @kannonbrixton9771 3 роки тому

      @Ezra Joel Flixportal :P

    • @ezrajoel870
      @ezrajoel870 3 роки тому

      @Kannon Brixton Thank you, I went there and it seems to work =) I appreciate it!

    • @kannonbrixton9771
      @kannonbrixton9771 3 роки тому

      @Ezra Joel no problem =)

  • @yalcinozer4434
    @yalcinozer4434 4 роки тому +1

    You know what you are doing. I like to add some simple animations to my RN apps, but I never thought this kind of complex gesture-animations are possible.

  • @ioanasbogdan
    @ioanasbogdan 3 роки тому +3

    Super great content William. Also animations course is super! You make it seem so easy. How i can adjust this example to have 3 columns and allow user to add items( images)? Thanks

    • @徐博俊-w3o
      @徐博俊-w3o 3 роки тому

      The code is very clear, you just need to change the code like this in Config.tsx
      export const SIZE = width / 3 - MARGIN;
      export const COL = 3;

    • @ioanasbogdan
      @ioanasbogdan 3 роки тому

      @@徐博俊-w3o did that already but the 3 item is not positioning ok. Also, how can I force a reorder when I delete an item?

  • @joshreynolds4164
    @joshreynolds4164 4 роки тому +2

    Smooth! Love this one

  • @徐博俊-w3o
    @徐博俊-w3o 3 роки тому +1

    Hi Willam,
    I purchased your awesome tutorial reanimated 2 course, I also want to know advanced, so I learn drag to sort from this video, but when I follow the code until 35:17, I can't let move, I check my code find that onScroll function can't be triggered.
    It looks like , onGestureEvent overried it, if I set enabled = false,
    can scroll and onScroll function work.
    I don't see you have the issue, why ?

    • @funnycat6332
      @funnycat6332 2 роки тому

      Have you turned on debug mode?

  • @glaze4629
    @glaze4629 2 роки тому +2

    How about Android? ZIndex does not work on Android and the elevation property is almost useless

  • @kamal9650-z1w
    @kamal9650-z1w 3 місяці тому

    Hi how to add delete option and sort list again

  • @hawyargroup
    @hawyargroup 2 роки тому +1

    Hi William, I want to thank you for these amazing tutorials ! I tried to to use dynamic images uri but positions can not be update on rerender ... how can i fix that ?

  • @CodeWithRaihan
    @CodeWithRaihan Рік тому

    Could you please tell me how can i do it with different height?

  • @thaophuong651
    @thaophuong651 4 роки тому

    thanks you . I hope you can release much video about test unit

  • @chintanbawa
    @chintanbawa 3 роки тому

    Super Cool. Thank you.

  • @BLUEGUY
    @BLUEGUY 3 роки тому

    Thank you! Can I know your font used in VSCode?

  • @Barthap10
    @Barthap10 3 роки тому

    would it be simpler with reanimated layout animations?

  • @OsamaQarem
    @OsamaQarem 4 роки тому +1

    Ratatat!
    Pleasant surprise 😁

  • @17Odkhuu
    @17Odkhuu 4 роки тому

    how to update state when translateY.value changed

  • @aamenasaiyed4336
    @aamenasaiyed4336 2 роки тому

    Hey Can you make drag and drop player on foot ball field which can be picked from horizontal Flatlist. The whole screen is kind of lineups.

  • @jemesmemes9026
    @jemesmemes9026 4 роки тому +4

    God I hope we can drag and drop scroll _AND_ swipe to scroll down the list normally

  • @shortsupply4760
    @shortsupply4760 2 роки тому

    Does anyone know how to add an item onto the end of the data array? when I setState with an extra item I get an error
    ```Unhandled promise rejection: Invariant Violation: [595,"RCTView",101,{"zIndex":0,"position":"absolute","top":0,"left":0,"width":117,"transform":[{"scale":1},{"translateX":""},{"translateY":""}],"collapsable":false}] is not usable as a
    native method argument```

    • @gautamkumar-wy2jg
      @gautamkumar-wy2jg 7 місяців тому

      I am having the same issue, have you been able to resolve?

  • @neiker234
    @neiker234 4 роки тому +1

    Now try to swipe vertically to scroll without accidentally start to dragging an element

    • @wcandillon
      @wcandillon  4 роки тому

      here you can have an "editing" state and disable the PanGesture based on that value: enabled={editing}. I hope this helps.

    • @neiker234
      @neiker234 4 роки тому +1

      Is a possible solution but I can't imagine a good way to integrate it on the UI without behing confusing for the user. Another options maybe is wraping the PanGestureHandler on a LongPressGestureHandler and only enable the PanGesture after 200ms or something

    • @hardcodet
      @hardcodet 4 роки тому +1

      @@wcandillon how would you suggest this to be implmented? it appears that if i set the editing state while already in a gesture, the pangesturehandler doesn't become active anymore. (tried to activate it after a long press on the dragged item).
      apart from non-drag scrolling not being possible, this example really rocks. thanks!

    • @ParthPatel-rj2gk
      @ParthPatel-rj2gk 3 роки тому

      @@hardcodet Did you find any solution yet ? @WilliamCandilon tried passing "editing" state as you suggested but it doesn't start listening to touch instantly. We have to release touch once and after gesture handler listens for touch event. It should immediately update on first long press. Any Solution for that ?

  • @rajureddy7512
    @rajureddy7512 4 роки тому

    Can u install react- native cli only please don't use npx package 🙏😭

    • @yrsafam
      @yrsafam 4 роки тому

      did you mean expo ?