🔴 React Navigation Shared Element Transition | React-Native | React-Navigation v5 | Part-2

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

ความคิดเห็น • 13

  • @akedevjs
    @akedevjs 2 ปีที่แล้ว +1

    The best of best

    • @vishalpwr
      @vishalpwr  2 ปีที่แล้ว +1

      Thanks man!

  • @ddikodroid
    @ddikodroid 3 ปีที่แล้ว +1

    Nice!

  • @santiagozapata9056
    @santiagozapata9056 3 ปีที่แล้ว +1

    Can you test this with a text component? For me it just stretches instead of interpolating it's properties nicely

    • @vishalpwr
      @vishalpwr  2 ปีที่แล้ว +1

      Yeah, this bug may be from shared-element.

  • @gouravnainwaya5669
    @gouravnainwaya5669 3 ปีที่แล้ว +2

    Bro plZZ MAKE HINDI AND RESSO CLONE IN REAct native

  • @faisalhatila1844
    @faisalhatila1844 2 ปีที่แล้ว

    cool but I have an issue, it's transitions are not working for other navigation stacks, like if I create a bottom tab navigator, or drawer and there are two screen that expected to show same mechanism so in second screen, transition is not working, any solution for that?
    thanks

    • @vishalpwr
      @vishalpwr  2 ปีที่แล้ว

      Make sure, You have created inner Stack Navigator with createSharedElementStack().

  • @excalibur885
    @excalibur885 3 ปีที่แล้ว +1

    great. but what if i dont want to pass the entire item data to the detail screen ? what if i only pass id of it and make a detail request at the detail page ? :)))

    • @vishalpwr
      @vishalpwr  3 ปีที่แล้ว +2

      If you want to send only id then you need to pass like this
      ("DetailScreen", {id: item.id}) and then get this "id" from route params.

    • @excalibur885
      @excalibur885 3 ปีที่แล้ว +1

      @@vishalpwr i alredy know that but will the animation work becouse there will be some delay untill the request is complete

    • @vishalpwr
      @vishalpwr  3 ปีที่แล้ว +2

      Yeah then it might not work as it is!
      If you using this, you have list in which image already present, so pass it to next screen, so that animation work perfectly, and then call api for more data😜.