Skip to content

Animation Backend init#53526

Closed
bartlomiejbloniarz wants to merge 4 commits into
mainfrom
bartlomiejbloniarz/animation-backend-init
Closed

Animation Backend init#53526
bartlomiejbloniarz wants to merge 4 commits into
mainfrom
bartlomiejbloniarz/animation-backend-init

Conversation

@bartlomiejbloniarz

@bartlomiejbloniarz bartlomiejbloniarz commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

Summary:

Initialize the Animation Backend - a unified way to modify view styles, that can be used by animation libraries. In it's current design it allows libraries to register a callback on each frame, that pushes a list of mutations to the platform. The idea is to pass the props as diffs to minimize the cost. The current implementation of AnimatedProps is subject to change, as it is not really optimised and doesn't cover many props (though there is a folly::dynamic fallback) - this is just a starting point. Animation libraries should rely on AnimatedPropsBuilder, since it should remain fairly stable over time.

Changelog:

Test Plan:

Run the fantom test for the Backend.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 29, 2025
@facebook-github-bot facebook-github-bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Aug 29, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has imported this pull request. If you are a Meta employee, you can view this in D81309558.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D81309558

bartlomiejbloniarz added a commit that referenced this pull request Aug 29, 2025
Summary:
## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #53526

Differential Revision: D81309558

Pulled By: bartlomiejbloniarz
@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from 17e676b to 5573403 Compare August 29, 2025 09:40
@github-actions

This comment was marked as spam.

@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: test_android_helloworld
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
HelloWorld app:assembleRelease 9.0.0 Build Scan not published

@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: test_android_helloworld
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
HelloWorld app:assembleDebug 9.0.0 Build Scan not published

@github-actions

github-actions Bot commented Sep 2, 2025

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@github-actions

github-actions Bot commented Sep 2, 2025

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has imported this pull request. If you are a Meta employee, you can view this in D81309558.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

bartlomiejbloniarz added a commit that referenced this pull request Sep 19, 2025
Summary:
This diff adds AnimatedProps class that allows prop diffs to be passed to the backend. Currently it is implemented through subclassing, but the implementation details are subject to change. To simplify integration with animation frameworks AnimatedPropsBuilder class was created - frameworks can use it to prepare their diffs.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[GENERAL] [ADDED] - AnimatedProps.h AnimatedPropsBuilder.h
[GENERAL] [CHANGED] - AnimationBackend initialisation and style updates

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #53526

Test Plan:
js1 fantom AnimatedBackend-itest.js
js1 fantom Animated-itest.js

Differential Revision: D81309558

Pulled By: bartlomiejbloniarz
@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from 8ed3a10 to e9fe8cf Compare September 19, 2025 10:42
@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from e9fe8cf to dcc50a1 Compare September 22, 2025 10:03
@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from dcc50a1 to f721579 Compare September 22, 2025 10:27
@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from f721579 to 9a35201 Compare September 22, 2025 11:50
@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

bartlomiejbloniarz added a commit that referenced this pull request Sep 22, 2025
Summary:
This diff adds AnimatedProps class that allows prop diffs to be passed to the backend. Currently it is implemented through subclassing, but the implementation details are subject to change. To simplify integration with animation frameworks AnimatedPropsBuilder class was created - frameworks can use it to prepare their diffs.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[GENERAL] [ADDED] - AnimatedProps.h AnimatedPropsBuilder.h
[GENERAL] [CHANGED] - AnimationBackend initialisation and style updates

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #53526

Test Plan:
js1 fantom AnimatedBackend-itest.js
js1 fantom Animated-itest.js

Differential Revision: D81309558

Pulled By: bartlomiejbloniarz
@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from 9a35201 to 635f89a Compare September 22, 2025 14:10
@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from 635f89a to ce80217 Compare September 24, 2025 12:50
@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@github-actions

Copy link
Copy Markdown

Job Summary for Gradle

Test All :: run_fantom_tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github :private:react-native-fantom:buildFantomTester 9.0.0 Build Scan not published

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz has exported this pull request. If you are a Meta employee, you can view the originating diff in D81309558.

bartlomiejbloniarz added a commit that referenced this pull request Sep 25, 2025
Summary:
This diff adds AnimatedProps class that allows prop diffs to be passed to the backend. Currently it is implemented through subclassing, but the implementation details are subject to change. To simplify integration with animation frameworks AnimatedPropsBuilder class was created - frameworks can use it to prepare their diffs.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[GENERAL] [ADDED] - AnimatedProps.h AnimatedPropsBuilder.h
[GENERAL] [CHANGED] - AnimationBackend initialisation and style updates

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #53526

Test Plan:
js1 fantom AnimatedBackend-itest.js
js1 fantom Animated-itest.js

Reviewed By: zeyap

Differential Revision: D81309558

Pulled By: bartlomiejbloniarz
@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from baddce7 to 942f001 Compare September 25, 2025 09:11
Bartlomiej Bloniarz and others added 4 commits September 30, 2025 06:22
Reviewed By: zeyap, sammy-SC

Differential Revision: D80809364
Reviewed By: zeyap

Differential Revision: D81137954
Summary:
This diff adds AnimatedProps class that allows prop diffs to be passed to the backend. Currently it is implemented through subclassing, but the implementation details are subject to change. To simplify integration with animation frameworks AnimatedPropsBuilder class was created - frameworks can use it to prepare their diffs.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[GENERAL] [ADDED] - AnimatedProps.h AnimatedPropsBuilder.h
[GENERAL] [CHANGED] - AnimationBackend initialisation and style updates

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #53526

Test Plan:
js1 fantom AnimatedBackend-itest.js
js1 fantom Animated-itest.js

Reviewed By: zeyap

Differential Revision: D81309558

Pulled By: bartlomiejbloniarz
@bartlomiejbloniarz bartlomiejbloniarz force-pushed the bartlomiejbloniarz/animation-backend-init branch from 942f001 to 16989eb Compare September 30, 2025 14:20
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 1, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@bartlomiejbloniarz merged this pull request in e091759.

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. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants