Skip to content

Restore the possibility to extend LayoutAnimationController #51479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

tomekzaw
Copy link
Contributor

@tomekzaw tomekzaw commented May 20, 2025

Summary:

In #50734, LayoutAnimationController was migrated to Kotlin and all of its methods are now marked as final.

However, this class is used and extended by react-native-reanimated in order to provide Layout Animations for Android on the Old Architecture. With all its methods being marked as final, the builds are failing.

This PR restores the possibility to extend LayoutAnimationController.

Changelog:

[ANDROID] [FIXED] - Restored the possibility to extend LayoutAnimationController

Test Plan:

I've checked that this PR fixes build errors caused by LayoutAnimationController in react-native-reanimated.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels May 20, 2025
@facebook-github-bot
Copy link
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 20, 2025
@facebook-github-bot
Copy link
Contributor

@cortinico merged this pull request in bca7c5a.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @tomekzaw in bca7c5a

When will my fix make it into a release? | How to file a pick request?

react-native-bot pushed a commit that referenced this pull request May 23, 2025
Summary:
In #50734, `LayoutAnimationController` was migrated to Kotlin and all of its methods are now marked as final.

However, this class is used and extended by `react-native-reanimated` in order to provide Layout Animations for Android on the Old Architecture. With all its methods being marked as final, the builds are failing.

This PR restores the possibility to extend `LayoutAnimationController`.

## Changelog:

[ANDROID] [FIXED] - Restored the possibility to extend `LayoutAnimationController`

Pull Request resolved: #51479

Test Plan: I've checked that this PR fixes build errors caused by `LayoutAnimationController` in react-native-reanimated.

Reviewed By: cipolleschi, mdvacca

Differential Revision: D75079557

Pulled By: cortinico

fbshipit-source-id: beeb700cbad87362dda4b60941124562c4753815
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @tomekzaw in 0dd583f

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants