Like Animation with Lottie [React Native]

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • In this video we'll learn how to replace a state change for a liked/unliked stated with a Lottie animation.
    Lottie: github.com/lot...
    Code: github.com/Rea...
    Animation: lottiefiles.co...

КОМЕНТАРІ • 43

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

    The best React Native animation video i ever seen

  • @alyankhan806
    @alyankhan806 11 місяців тому

    Awesome! exactly what I was looking for

  • @chandravardhan3725
    @chandravardhan3725 3 роки тому +1

    Bhai Kamaal kr diya yaar tune.

  • @RkoLeague
    @RkoLeague 3 роки тому +12

    As always, clean and structured code. I learned something new. I didn't know before that you can play certain frames. Thumbs up!

  • @chervindavasol4704
    @chervindavasol4704 3 роки тому +2

    Thank you for this expo project, more expo react-native please

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

    Thank You. i really love your clean code.

  • @HalesEnchanted
    @HalesEnchanted 3 роки тому +1

    This is so incredibly helpful. Thank you so much.

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

    Very cool! Is there any way to change the heart color from red to something else? I tried via the lottie editor but could only change some of the layers but not the actual red heart image

    • @ReactNativeSchool
      @ReactNativeSchool  3 роки тому +2

      I'm not sure. I'm wondering if you would have to use Adobe Illustrator to do that. I've only been able to change the lines around the heart

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

      @@ReactNativeSchool Apparently you can only do it if the source of that file allows you to. I've used another similar file and managed to changed that. I guess depends how flexible designers wants other to change their original design/flow. thanks anyway, this tutorial was really helpful.

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

    Hello sir, can't access Lottie view libraries ,. It shows an error of Uncaught, read only property!

  • @jinyoucheng8114
    @jinyoucheng8114 3 роки тому +1

    Great video! Very helpful.
    Could you please teach us how to implement this in ?
    If liked status (e.g: 1 or 0) comes from backend, how to implement array of animation?
    How to catch it's separate item?

  • @McLovin_JS
    @McLovin_JS 3 роки тому +2

    please help, i got "null is not an object animation.current.play"

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

      Got same error, did you found solution?

    • @McLovin_JS
      @McLovin_JS 3 роки тому +1

      Yes, the problem was that i had inside of a render item of a flatlist, i had to create a different file just for the Lottie and then call it wherever I wanted to use it

    • @MRAdex77
      @MRAdex77 3 роки тому +1

      @@McLovin_JS thank you for response, I will try it out :)

  • @nayaapadmashree248
    @nayaapadmashree248 3 роки тому +2

    Thank you

  • @ppsdeveloper9448
    @ppsdeveloper9448 3 роки тому +1

    Thank you.

  • @LifeYun-g4l
    @LifeYun-g4l Рік тому

    thanks

  • @MRAdex77
    @MRAdex77 3 роки тому +1

    Hi, I did exactly like you but I get error that animation.current.play is null

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

      did you find a solution?

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

      @@FirasKarboul yes I did, I needed to put it inside an external component then it worked

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

      @@MRAdex77 thanks yeah it worked

    • @chezlesss3869
      @chezlesss3869 3 роки тому +2

      @@MRAdex77 hi, im having the same problem and can you elaborate how to put it inside an external component?

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

    awesome very helpfull

  • @aseemkhan00
    @aseemkhan00 3 роки тому +1

    Sir please make an fully working e-commerce app tutorial pleasee

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

    please make regular video

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

    pretty clean, thank you!

  • @saumyaranjannayak2101
    @saumyaranjannayak2101 10 місяців тому

    great video❤

  • @lauren-ru6tw
    @lauren-ru6tw 3 роки тому +1

    Great tutorial, thank you!

  • @edsonme9
    @edsonme9 3 роки тому +1

    This can be implemented on React Native project, or only is for an Expo project?

    • @ReactNativeSchool
      @ReactNativeSchool  3 роки тому +2

      It will absolutely work in a React Native project - you just need to follow the slightly different install steps.

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

      @@ReactNativeSchool awesome!

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

    any tip with detox + lottie setup? because detox have problems when a lottie animation is looping

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

    thank you really much

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

    thank you,really beautiful package

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

    thankyou so much, u saved me

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

    Thank you

  • @mr.minhtung6118
    @mr.minhtung6118 3 роки тому

    pls help me !!! My app always crash when i import in my function component but when i delete all of Lottie API my project dont have any error. Thank u

    • @ReactNativeSchool
      @ReactNativeSchool  3 роки тому +1

      Sounds like an installation issue. Are you using the React Native CLI? If so, make sure you're following the install steps: github.com/lottie-react-native/lottie-react-native#installing-react-native--0600

    • @mr.minhtung6118
      @mr.minhtung6118 3 роки тому

      i also using expo for my project with npm :(( I tried creating a new project before but got the same error

    • @mr.minhtung6118
      @mr.minhtung6118 3 роки тому

      I have found some answers on google saying that this error is caused by lottie.json version (its must be 4.x.x ) but in your video I see you still use it at version 5.x.x without problem