Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@TheRogue76
Copy link
Collaborator

@TheRogue76 TheRogue76 commented Apr 5, 2025

It has been entirely too painful of an experience trying to maintain this package. It is not easy to reason about, meaning that unless me or @matinzd actually put everything aside and put time on this package, usually this package is not really getting the love it deserves from other parties.

Most of this comes down to two simple things: ObjC and the structure. ObjC is nobody's cup of tea, and isn't even what Lottie iOS uses either, it is just a wrapper that lets the actual Swift API of Lottie to talk with the actual C++ API of RN. It's a stop gap mess.

Regarding the structure, a lot of it is just trying to create compliance with RN's spec for Codegen anyway. See this , this, this and this

What i want for Lottie is a simple abstraction, close to hardware, close to how RN really works, in modern languages that everyone can use. The goals are as follows:

  1. Modern languages: Everyone should be able to contribute to this package, be it a native iOS dev who has worked with Lottie iOS, a Native android dev who has worked with Lottie Android, or some JS/TS dev who knows a decent amount about JS/TS
  2. The same exact API as V7. Wanna upgrade to V8? Make sure your RN version is high enough, and then just bump Lottie RN and you are done. No breaking API changes.
  3. I am open to debate on this but New arch only. I do not want to carry over the bridge. It has been annoying keeping two of these maintained for years. One architecture, THE architecture of RN.

In an ideal world, i want people to have a good API as part of RN's standard library so they can make stuff like Lottie RN on their own for their own code, and for libraries that provide basic functionality to go away, but maybe it is still too soon for that.

So we are going with Nitro. It will require some pretty high minimum RN version, but it will be worth it. We can make a V7 branch of the current Lottie, and put all the fixes in there so people can keep using the old implementation for a while longer.

@TheRogue76
Copy link
Collaborator Author

TheRogue76 commented Apr 5, 2025

Base View is now loading fine on iOS:
Screenshot 2025-04-05 at 16 55 01
Android is still not picking up the view though, so need to investigate

@TheRogue76
Copy link
Collaborator Author

Alright, Android fixed:
Screenshot 2025-04-05 at 17 59 16

@TheRogue76
Copy link
Collaborator Author

Whelp, guess i am committed now:

Screen.Recording.2025-04-05.at.20.05.54.mov

@TheRogue76 TheRogue76 requested a review from Copilot April 5, 2025 22:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 191 out of 203 changed files in this pull request and generated no comments.

Files not reviewed (12)
  • .editorconfig: Language not supported
  • .gitattributes: Language not supported
  • .github/FUNDING.yml: Language not supported
  • .github/workflows/android-fabric-build.yml: Language not supported
  • .github/workflows/android-paper-build.yml: Language not supported
  • .github/workflows/ios-fabric-build.yml: Language not supported
  • .github/workflows/ios-paper-build.yml: Language not supported
  • .github/workflows/lint-test.yml: Language not supported
  • .nvmrc: Language not supported
  • .vscode/settings.json: Language not supported
  • .watchmanconfig: Language not supported
  • CODEOWNERS: Language not supported
Comments suppressed due to low confidence (1)

CHANGELOG.md:1

  • The entire changelog has been removed. If this removal is intentional as part of the migration to the Nitro architecture, consider archiving the historical changelog to preserve critical release notes for users.
-# Changelog

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add our usernames.

@TheRogue76
Copy link
Collaborator Author

iOS working now
Screenshot 2025-04-12 at 18 18 23

@TheRogue76 TheRogue76 requested a review from Copilot April 12, 2025 16:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 194 out of 206 changed files in this pull request and generated no comments.

Files not reviewed (12)
  • .editorconfig: Language not supported
  • .gitattributes: Language not supported
  • .github/FUNDING.yml: Language not supported
  • .github/workflows/android-fabric-build.yml: Language not supported
  • .github/workflows/android-paper-build.yml: Language not supported
  • .github/workflows/ios-fabric-build.yml: Language not supported
  • .github/workflows/ios-paper-build.yml: Language not supported
  • .github/workflows/lint-test.yml: Language not supported
  • .nvmrc: Language not supported
  • .vscode/settings.json: Language not supported
  • .watchmanconfig: Language not supported
  • CODEOWNERS: Language not supported
Comments suppressed due to low confidence (3)

CHANGELOG.md:1

  • The complete removal of the CHANGELOG.md file may lead to losing historical release information. Please confirm that the changelog has been migrated or that this deletion is intentional.
-# Changelog ... (entire file removed)

.yarnrc.yml:1

  • Ensure that the updated Yarn configuration—including the addition of the workspace-tools plugin and the upgrade to Yarn v3.6.1—is backed by integration tests to catch any issues with dependency resolution.
nodeLinker: node-modules

.github/workflows/ci.yml:71

  • Review the cache key strategy to ensure that changes in dependency files are correctly detected and that cache invalidation works as intended.
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}

@TheRogue76
Copy link
Collaborator Author

Color filters working just fine on iOS now!
Screenshot 2025-04-12 at 19 28 05

@TheRogue76
Copy link
Collaborator Author

iOS's commands are still buggy. To figure out what is exactly wrong with them. Afterwards we can do a little RC or Alpha release

@TheRogue76
Copy link
Collaborator Author

@matinzd

@mrousavy
Copy link
Contributor

mrousavy commented Jun 5, 2025

This is super exciting! 🤩

@mrousavy
Copy link
Contributor

mrousavy commented Jun 5, 2025

iOS's commands are still buggy.

Have you explored using Nitro Views instead of normal Fabric views? Then you're using Nitro for everything, even callbacks. No more commands, no ObjC

@matinzd matinzd changed the title Lottie V8, now with Nitro Lottie V9, now with Nitro Aug 7, 2025
@matinzd matinzd changed the title Lottie V9, now with Nitro Lottie V8, now with Nitro Aug 7, 2025
@stale
Copy link

stale bot commented Sep 6, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale There has been a lack of activity on this issue and it may be closed soon. label Sep 6, 2025
@matinzd matinzd removed the stale There has been a lack of activity on this issue and it may be closed soon. label Sep 7, 2025
@matinzd
Copy link
Member

matinzd commented Sep 7, 2025

remove stale

@TheRogue76
Copy link
Collaborator Author

iOS's commands are still buggy.

Have you explored using Nitro Views instead of normal Fabric views? Then you're using Nitro for everything, even callbacks. No more commands, no ObjC

Hi Marc. Sorry i have been managing a whole bunch of other projects and this message fell into my very very overflowing inbox 😅. It looks pretty much like what i would have wanted from the get go. Wouldn't mind taking another look, but don't have a lot of free time at the moment to maintain this PR or wrap it up. @matinzd Don't know if you want to take a crack at it or not, but if you do, i might be able to help

@stale
Copy link

stale bot commented Oct 7, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale There has been a lack of activity on this issue and it may be closed soon. label Oct 7, 2025
@stale
Copy link

stale bot commented Oct 14, 2025

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this Oct 14, 2025
@matinzd matinzd reopened this Oct 28, 2025
@stale stale bot removed the stale There has been a lack of activity on this issue and it may be closed soon. label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants