airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
35.02k stars 5.41k forks source link

LottieProperty.TEXT not working properly on Compose #2330

Closed vaibhav30699 closed 1 year ago

vaibhav30699 commented 1 year ago

Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.

If you don't use this template, your issue will be closed. Delete this text once completed.

Checklist

  1. My animation doesn't use any unsupported features.
  2. I know what part of my animation doesn't work.
  3. I have created a simplified version of my animation
  4. I have attached the AEP file (as a zip file so it can be attached) that only has the part of the animation that doesn't work.

Describe the bug I tried using LottieProperty.TEXT on one of my animations and the text is partially shown and that too characters from in between.

What version of Lottie did you test this on? Latest version. Like I added the following dependency in my android project

implementation("com.airbnb.android:lottie-compose:_")

What version of Android did you test this on?

Android 13 (API 33)

Steps To Reproduce Steps to reproduce the behavior:

  1. Add LottieProperty.TEXT as one of the dynamic properties for the animation
  2. Only partial text will be shown on the animation and full text is not there.

Screenshots

Screenshot_20230705-121412

Screenshot 2023-07-05 at 12 14 02 PM
ArthurVimond commented 1 year ago

Hi @vaibhav30699, I didn't see your Lottie JSON file but I'm pretty sure that's the same reason as this issue: https://github.com/airbnb/lottie-android/issues/2324. To be confirmed though.

vaibhav30699 commented 1 year ago

Hi @ArthurVimond, Because of confidential data, I can't upload the JSON here. But, thank you for referencing to the issue. Let me check and reply on this thread.

gpeal commented 1 year ago

@ArthurVimond is correct here, thanks for explaining this to them! This is not related to Compose though, Compose and Views share the same code path here.